Jump to content

Moving Prestashop 1.75 to a new server


Recommended Posts

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

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

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.

  • Like 1
Link to comment
Share on other sites

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 26

Fatal 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 by mattwilkie
more information (see edit history)
Link to comment
Share on other sites

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

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).

  • Like 1
Link to comment
Share on other sites

11 hours ago, mattwilkie said:

There is one error.

  1. 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

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

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

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

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

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

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

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/

val.jpg

Edited by mattwilkie
add image (see edit history)
Link to comment
Share on other sites

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

  • 2 weeks later...

 

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 by mattwilkie
found solution (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...