Search code examples
phpmysqlconfigosticket

how to shift osticket from one server to another without reinstalling?


I am running osTicket on server and now i need to migrate the server. So i took backup of files and database on my localhost and trying to run it for test but it is giving me error of 500 and descripton is

PHP Fatal error: Can't inherit abstract function AuthenticatedUser::getId() (previously declared abstract in BaseAuthenticatedUser) in /var/www/html/ostickets/upload/include/class.auth.php on line 26

I am testing it on local so that after successful migration i don't want to loose any of my data. please guide.


Solution

  • It is pretty simple, once you've installed the same version of OSTicket in your new server, you just need to migrate the database.

    From terminal:

    mysql -u root -p ost_db < [PATH TO YOU OSTicket DB BACKUP FILE]/ost_db.sql
    

    Have a great day!