mattwilkie Posted April 28, 2019 Share Posted April 28, 2019 I am trying to move 2 Prestashop sites from Hostgator to another host. As the files are over the 100,000 limits I cannot do a Cpanel backup. I have had to manually download all the files and then upload onto the new server. I downloaded the files + MySql databases however I cannot get them to work on the new server. Would appreciate someone's help as the tutorials I have found online seem to all be for 1.6 as such the editing of files is different. Link to comment Share on other sites More sharing options...
Janett Posted April 28, 2019 Share Posted April 28, 2019 You have to clear all cache files before made a backup. So delete all folders and files in var/cache/ Make your backup for files Before make a backup of the database, you can truncate big tables like ps_connections, ps_connections_page, ps_connections_source, ps_pagenotfound, ps_page_viewed, ps_search_index, ps_search_word, ps_statssearch Make your backup of database Link to comment Share on other sites More sharing options...
JBW Posted April 30, 2019 Share Posted April 30, 2019 There are instructions for 1.7. here as well (but actually not quite different to 1.6). Whats your exact issue? Link to comment Share on other sites More sharing options...
mattwilkie Posted April 30, 2019 Author Share Posted April 30, 2019 I downloaded the database + full FTP download Moved to new server, created new database and imported the information put the files into the same domain folder (as its the same Domain name). Screen is just blank. planemanuals.com Link to comment Share on other sites More sharing options...
JBW Posted April 30, 2019 Share Posted April 30, 2019 Have you adjusted the DB login data in the parameters.php file? Are the PHP Version and setting same as on the old server? Blank screen is hiding an error message - active debug mode to see the details. 1 Link to comment Share on other sites More sharing options...
mattwilkie Posted April 30, 2019 Author Share Posted April 30, 2019 How can i activate the debug mode manually? Yes I adjusted the login information but I wasn't 100% it was correct because the file editing had changed since 1.6 Link to comment Share on other sites More sharing options...
mattwilkie Posted April 30, 2019 Author Share Posted April 30, 2019 The MySQL version is different - Old server - 5.6.41-84 New server - 5.7.26 Link to comment Share on other sites More sharing options...
JBW Posted April 30, 2019 Share Posted April 30, 2019 Link to comment Share on other sites More sharing options...
mattwilkie Posted April 30, 2019 Author Share Posted April 30, 2019 (edited) It worked, now got an error - Warning: require_once(/home/planema1/public_html/config/../vendor/autoload.php): failed to open stream: No such file or directory in /home/planema1/public_html/config/autoload.php on line 26Fatal error: require_once(): Failed opening required '/home/planema1/public_html/config/../vendor/autoload.php' (include_path='.:/opt/cpanel/ea-php56/root/usr/share/pear') in /home/planema1/public_html/config/autoload.php on line 26 So its location on the drive is correct (its the new server) but not finding it. Edited April 30, 2019 by mattwilkie more information (see edit history) Link to comment Share on other sites More sharing options...
JBW Posted April 30, 2019 Share Posted April 30, 2019 Check if the mentioned files exists on your new server and if the access rights (CMOD) are correct. Link to comment Share on other sites More sharing options...
mattwilkie Posted April 30, 2019 Author Share Posted April 30, 2019 I can't see the folder /../ Link to comment Share on other sites More sharing options...
JBW Posted April 30, 2019 Share Posted April 30, 2019 ../ means move one folder up. Link to comment Share on other sites More sharing options...
mattwilkie Posted May 2, 2019 Author Share Posted May 2, 2019 The main issue is that Filezilla didn't copy all the files. Although used Terminal and reuploaded again, still getting this error - Not Found The requested URL /gb/ was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Link to comment Share on other sites More sharing options...
JBW Posted May 2, 2019 Share Posted May 2, 2019 Is mod_rewrite active on your server? This is required for friendly URLs such as the language selection from your example. Try to switch it of in SEO section and maybe activate again (will create new .htaccess, if you have manual changes in there make a backup). 1 Link to comment Share on other sites More sharing options...
mattwilkie Posted May 2, 2019 Author Share Posted May 2, 2019 Struggling to get into the back end - There is one error. Error found : Extra content at the end of the document in must_have_module_list.xml file. Link to comment Share on other sites More sharing options...
mattwilkie Posted May 2, 2019 Author Share Posted May 2, 2019 Really appreciate your help by the way @JBW Link to comment Share on other sites More sharing options...
JBW Posted May 3, 2019 Share Posted May 3, 2019 11 hours ago, mattwilkie said: There is one error. Error found : Extra content at the end of the document in must_have_module_list.xml file. You can rename this file on your server to must_have_module_list.xml_old - Presta will regenerate it with your next login. Link to comment Share on other sites More sharing options...
mattwilkie Posted May 8, 2019 Author Share Posted May 8, 2019 thanks for that, I am back "yet again" as there were files missing from FileZilla took ages to get everything sorted. But now 90% there. The issue I have currently is it doesn't allow me to see the admin area. Yet the main site is now loading - Planemanuals.com Link to comment Share on other sites More sharing options...
El Patron Posted May 8, 2019 Share Posted May 8, 2019 TIP: before moving to new hosting point an unused domain (assuming your plan supports more than one domain). create that domain on your hosting and transfer your files to that domain name test the shop in this domain. From this you will understand the challenges of file transfer but also that your hosting will support a PrestaShop. Happy migrating Link to comment Share on other sites More sharing options...
mattwilkie Posted May 8, 2019 Author Share Posted May 8, 2019 I have moved them across have the main site now loading, backend is partially loading but still got bugs. The host hasn't been too helpful as they wanted a CPanel backup which my old host wouldn't provide because the site(s) are too big. So had to move with a Zip from there to the new host. New host said they aren't in a Cpanel format so just unzipped and that's pretty much as far as I got with them. As I have had to do the majority of work myself so far. Link to comment Share on other sites More sharing options...
El Patron Posted May 8, 2019 Share Posted May 8, 2019 there is a method to the madness and plenty of good guides of 'how to' migrate. And agreed we have to do a majority of the work ourselves that is why if you follow expert advices there are less/no impacts to your production shop and it saves a lot of heartache lol Link to comment Share on other sites More sharing options...
mattwilkie Posted May 9, 2019 Author Share Posted May 9, 2019 I agree and where possible I have done. Just trying to get over the last bugs. Notice on line 101 in file /home/planema1/public_html/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/StrictSessionHandler.php [8] SessionHandler::gc(): ps_files_cleanup_dir: opendir(/var/cpanel/php/sessions/ea-php70) failed: Permission denied (13) As I assume the bug above is related to something that should be changed or deleted. A solution was found here - But been waiting 16 hours for access to the php.ini to change it. Link to comment Share on other sites More sharing options...
Janett Posted May 9, 2019 Share Posted May 9, 2019 7 minutes ago, mattwilkie said: Notice on line 101 in file /home/planema1/public_html/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/StrictSessionHandler.php [8] SessionHandler::gc(): ps_files_cleanup_dir: opendir(/var/cpanel/php/sessions/ea-php70) failed: Permission denied (13) It seem you have some server configuration issue. Please contact your hosting provide r to allow PrestaShop access to /var/cpanel/php/sessions/ and subfolders and files or choose another path for the storage of session in CPanel. I never use CPanel but it seem this can be possible as you can read here : https://www.prestashop.com/forums/topic/982333-urgent-help-please-the-website-is-crashing-every-time-i-install-prestashop/?do=findComment&comment=3104875 Link to comment Share on other sites More sharing options...
mattwilkie Posted May 9, 2019 Author Share Posted May 9, 2019 (edited) 5 hours ago, Janett said: It seem you have some server configuration issue. Please contact your hosting provide r to allow PrestaShop access to /var/cpanel/php/sessions/ and subfolders and files or choose another path for the storage of session in CPanel. I never use CPanel but it seem this can be possible as you can read here : https://www.prestashop.com/forums/topic/982333-urgent-help-please-the-website-is-crashing-every-time-i-install-prestashop/?do=findComment&comment=3104875 6 The problem is even looking at the old server (as its still live) there is no var/cpanel/ Edited May 9, 2019 by mattwilkie add image (see edit history) Link to comment Share on other sites More sharing options...
Janett Posted May 9, 2019 Share Posted May 9, 2019 Ask your hosting provider, this is a server configuration issue. Link to comment Share on other sites More sharing options...
Alex White Posted May 9, 2019 Share Posted May 9, 2019 I think the main reason caused by your hosting/server. Last month, I moved my PS to new hosting by using Bluehost without problem Link to comment Share on other sites More sharing options...
mattwilkie Posted May 9, 2019 Author Share Posted May 9, 2019 I agree they made it difficult to move over. As a Cpanel backup would have been done and dusted in a day. Link to comment Share on other sites More sharing options...
mattwilkie Posted May 9, 2019 Author Share Posted May 9, 2019 Fantastic host, now wanting me to upgrade to a VPN account that I don't need so that they will let me access the php.ini Link to comment Share on other sites More sharing options...
mattwilkie Posted May 9, 2019 Author Share Posted May 9, 2019 Response from host - cPanel no longer supports PHP 5.4 the minimum version that they support is PHP 5.6 You need to find the way to update this website and make it work with PHP 5.6 or PHP 7 Link to comment Share on other sites More sharing options...
Janett Posted May 9, 2019 Share Posted May 9, 2019 Prestashop 1.6.1.24 is compatible from PHP 5.2 to PHP 7.1 Prestashop 1.7.5 is compatible from PHP 5.6 to PHP 7.2 https://devdocs.prestashop.com/1.7/basics/installation/system-requirements/ Your problem is not PHP version but the path where PHP store session : Quote Notice on line 101 in file /home/planema1/public_html/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/StrictSessionHandler.php [8] SessionHandler::gc(): ps_files_cleanup_dir: opendir(/var/cpanel/php/sessions/ea-php70) failed: Permission denied (13) So this is a server configuration issue. Ask your hosting provider to change that in order to make Prestashop work Link to comment Share on other sites More sharing options...
mattwilkie Posted May 10, 2019 Author Share Posted May 10, 2019 I don't think they know how to fix it. Link to comment Share on other sites More sharing options...
Janett Posted May 10, 2019 Share Posted May 10, 2019 This guys can change that in his Cpanel apparently : https://www.prestashop.com/forums/topic/982333-urgent-help-please-the-website-is-crashing-every-time-i-install-prestashop/?do=findComment&comment=3104875 So search if you can do yourself too Link to comment Share on other sites More sharing options...
mattwilkie Posted May 10, 2019 Author Share Posted May 10, 2019 1 minute ago, Janett said: This guys can change that in his Cpanel apparently : https://www.prestashop.com/forums/topic/982333-urgent-help-please-the-website-is-crashing-every-time-i-install-prestashop/?do=findComment&comment=3104875 So search if you can do yourself too there is no var/cpanel folder though Link to comment Share on other sites More sharing options...
Janett Posted May 10, 2019 Share Posted May 10, 2019 Yes this is a protected folder you cannot access and Prestashop cannot access too and this is the problem. So you have to find how to change that : https://www.prestashop.com/forums/topic/982333-urgent-help-please-the-website-is-crashing-every-time-i-install-prestashop/?do=findComment&comment=3104875 1 Link to comment Share on other sites More sharing options...
mattwilkie Posted May 18, 2019 Author Share Posted May 18, 2019 (edited) Yep the host solution was to redo the site, which is another issue. But I am trying now to import from an export using CSV. However I am finding that its not importing properly with the latest version of prestashop even though it looks fine in a spreadsheet and the same format as the template. Is this something anyone else has had? I have added my file if anyone can see anything wrong with it appreciate any help! Found the solution the exporter was using ";" but the import needed "," something so simple but likely someone else will hit the same issue. Edited May 18, 2019 by mattwilkie found solution (see edit history) 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