PrestaShop

Our helpdesk can install PrestaShop for you, or you can do so yourself via cPanel > Software > Softaculous.

If you are moving PrestaShop to a different domain, or switching from server pathways to your domain name, then you need to update PrestaShop with the new domain name.

Updating your database

Log into cPanel, then go to “PHPMyAdmin” and log into your PrestaShop database. Go to the table “ps_configuration” and locate the records for PS_SHOP_DOMAIN and PS_SHOP_DOMAIN_SSL. Change these to the new domain name. Check the configuration table for any other entries that contain the old domain name and change accordingly.

Updating your config settings

Via FTP or the file manager in cPanel, modify the PHP file /config/settings.inc.php. Look for the entry for PS_BASE_URI__ and modify as necessary. For a shop located in the root, it should read:

define('__PS_BASE_URI__', '/');

Updating SEO-friendly URLs

  1. Delete (or rename) the .htaccess file on your site.
  2. In our PrestaShop admin, you now need to re-generate the SEO URLs with the new domain name. Log into your PS admin, then go to “tools > generate .htaccess”

Enabling SSL

If your site has a full SSL Certificate, then you can also enable this via your PS admin under “Preferences page > Enable SSL: Yes”.

To migrate your site you will need

  • The PrestaShop files from your previous host (download via FTP from your previous hosts server)
  • An SQL file (export your database in SQL format from your previous host via PHPMyAdmin)
  • Your access details to your site's cPanel on our server</li>

Transferring the Database

  1. Log into your site's cPanel on our server<
  2. Go to “Databases > MySQL Database Wizard”. Follow the guidelines to set up a new (empty) database. Note down the database name, database username and database password.
  3. In your site's cPanel go to “Databases -&gt; PHPMyAdmin”. Go to “Import” and upload the SQL file you exported from your previous host.

Transferring the Files

  1. Open an FTP program and connect to our server with your FTP login details.
  2. Navigate to the /home/$USER/public_html/ folder where $USER is your cPanel username and upload all your files. If you wish to install PrestaShop in a folder, please change the upload path accordingly.
  3. Check the file permissions. Folders should have 755, Files 644.

Configuring your Site

Your PrestaShop shop stores the database connection details in a file. To connect to the database on our server, this needs updating. Via FTP, download the file /home/$USER/public_html/config/settings.inc.php and update with your new DB name, username and password, then re-upload the file to your site.

Notes

  • Your PrestaShop admin login details will remain as before as these are stored in the database which you transferred.
  • f you are using any emails in your shop, please don't forget to set up any addresses you need in your site's cPanel on our server (unless you use an external mail service provider).

Get your _COOKIE_KEY_

  1. Log into your site's cPanel and go to “File Manager”
  2. Open /config/settings.php and copy the _COOKIE_KEY_ value
  3. In the same file, check the database name in use for your PS install. The name will show as the value of “_DB_NAME_”

Check your database

  1. In your site's cPanel, go to PHPMyAdmin and open the database for your PrestaShop install
  2. Look for a table called “employee” or if you are using prefixes, “ps_employee”
  3. Check what email address is being used for your login in this table</li>

Reset password

  1. Still in the database, go to “SQL” at the top and run the following query, where you replace the $VAR with the correct information
    UPDATE employee SET passwd = md5(concat('$COOKIE_KEY', '$PASSWORD')) 
    WHERE email = "youremailaddress";
  2. If your PrestaShop install uses table prefixes such as “ps_”, amend the command to include the prefix:
    UPDATE ps_employee SET passwd = md5(concat('$COOKIE_KEY', '$PASSWORD')) 
    WHERE email = "youremailaddress";