canelones Posted January 13, 2016 Share Posted January 13, 2016 Hello, What are the steps to move a site from localhost to a remote server. Below are what I did so far: (but I get a 500 Error) I Moved all file from localhost to remote using FTP. I Exported the local database. I Created a database in remote server and imported the database. I Changed database setting in config/settings.inc.php Just this lines: <?php define('_DB_SERVER_', 'localhost'); // MAYBE THIS IS WRONG??? Should I put the IP of my server? define('_DB_NAME_', 'remoteDb'); define('_DB_USER_', 'remoteDb'); define('_DB_PASSWD_', 'x4x4x4'); I'm 100% sure the credentials for the database are the correct ones. But, I just get 500 Error page. I can't access the backend. What am I missing here. Link to comment Share on other sites More sharing options...
canelones Posted January 13, 2016 Author Share Posted January 13, 2016 I also see somewhere that I should manually change the values of PS_SHOP_DOMAIN_SSL and PS_SHOP_DOMAIN in database (ps_configuration table). I just did it but not working... Link to comment Share on other sites More sharing options...
gabdara Posted January 13, 2016 Share Posted January 13, 2016 Don't forget to enable development mode in order to see what's the error you're getting on the 500 page. 1 Link to comment Share on other sites More sharing options...
canelones Posted January 13, 2016 Author Share Posted January 13, 2016 Don't forget to enable development mode in order to see what's the error you're getting on the 500 page. Thanks, now I see that the problem is: Fatal error: Call to undefined function apc_cache_info() in /home/example/www/classes/cache/CacheApc.php on line 39 My server uses xCache, then I guess that I have to turn off the APC caching and re-import the database. Link to comment Share on other sites More sharing options...
El Patron Posted January 13, 2016 Share Posted January 13, 2016 have you first installed a vanilla PrestaShop of your version on server? This allows PrestaShop installer to check your server configuration which you can then review and resolve before you move from localhost. This of course assuming you have not run PrestaShop on this server configuration before. as for you error message above, you would need to enable apc cache on the server. there is a hack to turn off cache config/settings.inc.php define('_PS_CACHE_ENABLED_', '0'); then you move should be able to go a little farther. 1 Link to comment Share on other sites More sharing options...
canelones Posted January 13, 2016 Author Share Posted January 13, 2016 have you first installed a vanilla PrestaShop of your version on server? This allows PrestaShop installer to check your server configuration which you can then review and resolve before you move from localhost. This of course assuming you have not run PrestaShop on this server configuration before. as for you error message above, you would need to enable apc cache on the server. there is a hack to turn off cache config/settings.inc.php define('_PS_CACHE_ENABLED_', '0'); then you move should be able to go a little farther. That is what I just did. I get it working right now. I already cleared caches. Is there any other thing I have to do? Link to comment Share on other sites More sharing options...
El Patron Posted January 13, 2016 Share Posted January 13, 2016 back office-->advanced parms-->configuration information...there you can see if any incompatibilities noted by PS. Happy PrestaShopping. Link to comment Share on other sites More sharing options...
canelones Posted January 14, 2016 Author Share Posted January 14, 2016 back office-->advanced parms-->configuration information...there you can see if any incompatibilities noted by PS. Happy PrestaShopping. Thanks. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now