Paul_gpvr Posted April 23, 2012 Share Posted April 23, 2012 Hi, Hoping someone can help, bit stuck! I've decided to move my hosting from shared hosting to a vps. I've never used a vps before its running plesk panel. I've followed this guide http://doc.prestashop.com/display/PS14/System+Administrator+Guide#SystemAdministratorGuide-MovingPrestaShop I currently have the shop running on a live site and was hoping to make a copy of it, put it on another spare domain name i have then switch domains. I've copied the hosting files from the live site to my local disk and uploaded to a new domain folder i created on the plesk vps. I exported the database from the phpMyAdmin of the live site. Created a new database in Plesk (not sure how its linked to which domain, perhaps thats the issue?) gave it the same name as the existing db, same username and pwd. I then updated settings.inc.php with the new settings and updated the "PS_SHOP_DOMAIN" and "PS_SHOP_DOMAIN_SSL" rows in the "ps_configuration" SQL table. The result is i cant get anything to show when i go to the duplicate shop's url, or its BO login page. Just a blank page. If someone could help, it would be really appreciated. Thanks, Paul Link to comment Share on other sites More sharing options...
Carl Favre Posted April 24, 2012 Share Posted April 24, 2012 Hi Paul, Did you turn on debug mode to see any error messages? /* Debug only */ @ini_set('display_errors', 'off'); define('_PS_DEBUG_SQL_', false); change to 'on' and you should see error messages. 1 Link to comment Share on other sites More sharing options...
Paul_gpvr Posted April 24, 2012 Author Share Posted April 24, 2012 Thanks Carl, Will try that shortly. I dont think i had the vps setup correctly. So i'm creating a webspace this time and it looks like the database will be assigned to that. Fingers crossed, i'll let you know how i get on. Thanks. Link to comment Share on other sites More sharing options...
Paul_gpvr Posted April 24, 2012 Author Share Posted April 24, 2012 Thanks Carl, Will try that shortly. I dont think i had the vps setup correctly. So i'm creating a webspace this time and it looks like the database will be assigned to that. Fingers crossed, i'll let you know how i get on. Thanks. Link to comment Share on other sites More sharing options...
El Patron Posted April 24, 2012 Share Posted April 24, 2012 remember not to set up your new space as a sub-domain, you can create adomain with a sub-domain type name. (sub-domains do not have their own dns, mail etc.).... Link to comment Share on other sites More sharing options...
Paul_gpvr Posted April 24, 2012 Author Share Posted April 24, 2012 Hi Carl I'm not sure where you turn that debug setting on? Can you detail how to do it? THanks. Hi Paul, Did you turn on debug mode to see any error messages? /* Debug only */ @ini_set('display_errors', 'off'); define('_PS_DEBUG_SQL_', false); change to 'on' and you should see error messages. Link to comment Share on other sites More sharing options...
El Patron Posted April 24, 2012 Share Posted April 24, 2012 I'm not Carl, wish I had half his brain. see (your root)/config/config.ini.php Link to comment Share on other sites More sharing options...
Paul_gpvr Posted April 24, 2012 Author Share Posted April 24, 2012 Ok got the debug working. when i go to the shops url i get:- "Fatal error: Call to undefined function mcrypt_encrypt() in /var/www/vhosts/bbqsrus.co.uk/httpdocs/classes/Rijndael.php on line 46" Its the same when i try to access the back office folder as well. Perhaps this is to do with the settings in settings.inc.php "define('_RIJNDAEL_KEY_', 'c4nENBOHQ1GOWxkVY2Ed80zETnr3E6Ru'); define('_RIJNDAEL_IV_', 'WsOjIk08tDVTWtfK5fpUjg=='); define('_PS_VERSION_', '1.4.7.0');" Link to comment Share on other sites More sharing options...
El Patron Posted April 24, 2012 Share Posted April 24, 2012 look into your PHP.ini file, if you find following line started with ";" (it is commented out). ;extension=php_mcrypt.dll should be extension=php_mcrypt.dll Link to comment Share on other sites More sharing options...
Paul_gpvr Posted April 24, 2012 Author Share Posted April 24, 2012 Thanks for the quick reply. Sorry i dont know how to modify php.ini on the VPS hosting. I've mentioned it to my hosting company but that could take a while! Link to comment Share on other sites More sharing options...
Carl Favre Posted April 24, 2012 Share Posted April 24, 2012 Hi Paul, Sorry I forgot to precize the file to edit but elpatron gave it to you . Elpatron, I can assure you you did not wish you had half my brain 1 Link to comment Share on other sites More sharing options...
El Patron Posted April 24, 2012 Share Posted April 24, 2012 Thanks for the quick reply. Sorry i dont know how to modify php.ini on the VPS hosting. I've mentioned it to my hosting company but that could take a while! Welcome to the world of VPS where you are basically running your own private server in a virtual dedicated environment. You should prepare yourself for learning all sorts of new things. Start by getting the putty application and shell 'root' access to your server. Then you will need to find your php.ini (see phpinfo) or use command php -i | grep php.ini then use the linux vi or vim commands to edit the php.ini. Link to comment Share on other sites More sharing options...
bellini13 Posted April 24, 2012 Share Posted April 24, 2012 some server configurations do not support the use of mcrypt (ie... centos with php5.3 64 bit). you just need to trust me on this. I suspect that is the issue, since you stated you have a plesk install, you probably have a very similar setup as me. In the meantime, you can get past the issue by changing the cookie encryption to the custom blowfish class. This is typically changed in the back office, but you cannot log into the back office So you will need to use phpmyadmin to change the value directly in the database. Open phpmyadmin, select the correct database, and then select the "SQL" menu option. Enter the following query in the text box and then click go. UPDATE `ps_configuration` SET `value` = '0' WHERE `ps_configuration`.`name` ="PS_CIPHER_ALGORITHM"; 2 Link to comment Share on other sites More sharing options...
Berlindoor Posted June 13, 2012 Share Posted June 13, 2012 bellini13 you are the man, grazie di cuore I was freaking out because of that stuff Link to comment Share on other sites More sharing options...
TheShaman Posted July 11, 2012 Share Posted July 11, 2012 Thanks bellini13, I had exactly the same problem hosting on a vps server and that fixed it Link to comment Share on other sites More sharing options...
mmsh Posted March 21, 2013 Share Posted March 21, 2013 some server configurations do not support the use of mcrypt (ie... centos with php5.3 64 bit). you just need to trust me on this. ahahahahahah really? don't do it! it's not true...noway! Your PS will become slowcoach! only be sure to have something like this on the phpinfo if you're on linux (eg centos) and don't see that you have to install php-mcrypt and (if don't see that yet) then insert into php.ini the following extension=mcrypt.so making sure that the dynamic library is loaded as usual without any error. 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