Table of content
Doing a manual update is a long and detailed process, which should only be use out of necessity – for instance, if you cannot make an automatic update. Therefore, manual updates should be reserved to experts. |
This small section is aimed at those who are already familiar with installing and updating PHP-MySQL web applications on a server. Should you not feel comfortable with their lack of details, you will find detailed instructions in the section following this one.
config/settings.inc.php
and change the __PS_BASE_URI__
to match to the /prestashop/
folder that you just uploaded. Change others settings as needed./prestashop/
folder with your browser and check that everything works fine before going to the next step./install/upgrade/upgrade.php
./prestashop/install
folder and access both your front and back-office to make sure it works./prestashop
folder, and your older store is deactivated at its normal URL. They both have the same content: products, pages, images, theme, modules, etc. It is time to swap the two. Either:
/prestashop
to the normal URL, replacing the old files with the new ones./oldshop
) and move the updated shop from the /prestashop
folder to the normal one.You're done! Enjoy all the new features brought by this update!
Not backing up your store constitutes a very important risk if you encounter any difficulties with the upgrade. There is a risk of data loss. Do not ever skip this step. Do not proceed to step 2 unless you are absolutely certain that your backups are completed, successful, and fully functional. Do check several times. |
You must save all of the files related to your PrestaShop store.
There are two main ways of backing up your files:
...or...
Disabling your store is very important. |
Go to your store's back-office, click on the "Preference" tab, then select "No" for the "Enable Shop" option.
In the "Maintenance IP" field, located just below the "Enable Shop" one, enter your own IP address, so that you can keep on using your store during the update. This will allow you to test the store, while still making sure visitors cannot access the website.
In order to find out your IP address, visit this page: http://whatismyipaddress.com/
You must absolutely back up the whole database for your PrestaShop store.
There are three different ways to back up your database:
...or...
...or...
If you did not edit the available translations or add new ones (either PrestaShop's or your modules'), please proceed to step 2.
Navigate to the "Tools" tab, then the "Translations" sub-tab of your back-office.
In the section "Export a Language" select the language to which you have made any modifications, then select your current theme, and click "Export".
Save the downloaded file into a backup folder of your choice, on your local computer…
Do this for all your custom languages, both those you created/added and those you modified/corrected.
Does it contain...
You have checked the entire backup folder, and made sure that they are all correct and that you would be able to return to your current version / restore all of your data. If you answered yes to all of the questions above, then proceed to Step 2. |
Visit http://www.prestashop.com and download the latest version of PrestaShop (click the "Download" button on the homepage).
You now should have a file: prestashop_1.x.x.zip (where "x" is a digit of the version number).
Unzip the file to your computer. If you do not yet have an unzipping tool, you can download a free one here: http://www.7-zip.org/.
Once unzipped, open the "/prestashop
" folder that was inside the Zip archive.
In that "/prestashop
" folder, select the "/admin
" folder and rename it to something unique to you (for instance, "/admin436
"). Your online store currently also has a unique "admin" folder, from its original installation; you can use that unique name if you wish. If you do not know the unique name of your online store's "/admin
" folder, use whichever name you want.
Some of the folders that you have backed up will need to be copied to your "/prestashop
" folder.
You will be copying files from your "Backup" directory to the " |
The following folders must be copied from your backup to the recently unzipped /prestashop
folder:
/mails
folder has all the mails that you have modified./img
folder contains your logo and all the pictures of your store (categories, products…)/modules
folder, only copy the modules that you have added./themes/yourtheme
folder, only copy your current theme. If you use the default theme from PrestaShop, do not copy it, you must use the one from the new version./download
and /upload
folders, which contain all the downloadable products, the attached files and the customizable products. If you do no use any of these functionalities, do not copy these folders./classes
folder: in case you have added customized classes to this folder, copy them to the new /classes
folder.Core
-suffixed. If you are upgrading from PrestaShop 1.4.x, you shouldn't have any (except for custom classes).MyClass
" becomes "MyClassCore
".class AttributeCore extends ObjectModel
"), then you do not need to change anything./config
folder, only copy the settings.inc.php
file, then modify the following lines:
PS_BASE_URI
" must contain the name of the subfolder where you are going to do your update. For instance, "/prestashop/
" instead of "/
", or of the name of current folder for your current store.DB_NAME
", "DB_USER
" and "DB_PASSWD
" too.The "prestashop" folder that you have unzipped, now contains all the modifications from your "Backup" folder (and therefore, from your current live store). This next step will have you upload that folder on your FTP server.
If the folder of your online store is already named "prestashop", rename the "prestashop" folder on your hard drive to something else before sending it onto your FTP server. |
If you renamed the "prestashop" folder, do not forget to update the config/settings.inc.php
file accordingly, as explained in step 2-B.
Using your FTP client, upload the "prestashop" folder to your server.
Let's say your store is at the following URL: http://www.myprestashop.com.
config/settings.inc.php
on line "PS_BASE_URI" so that it has the name of the folder on your server (should be "prestashop").define('__PS_BASE_URI__', '/'); |
define('__PS_BASE_URI__', '/prestashop/'); |
If you answered yes to all the questions above, then proceed to step 3. |
The parameters of your hosting provider should show on the screen, as well as more details about the operation about to be launched.
max_execution_time
shows the maximum time in seconds authorized by your hosting provider for the update to take place. If this number is smaller than the estimated time of installation, we recommend that you notify your hosting provider so that he can increase this limit.memory_limit
is the maximum memory that you're hosting provider will set aside for you to complete the upgrade. If this value is smaller than "32M", you should contact your hosting company to request an increase of this value.If any of these two parameters does not meet the requirements, you are taking the risk of receiving an error message or a blank page after clicking the "Next".
Otherwise, click the "Next" button at the bottom of the page.
If sufficient rights are assigned to your files and folders, the following page will show:
If not, make sure that the folders' rights are properly configured: change the access rights of the folders marked in red in the install/update tool, directly on your FTP server (make a CHMOD 755 or 775, depending on your hosting provider) then click the "Refresh these settings" button.
In order to perform a CHMOD, using your FTP client, find the folders that have the wrong permission settings, right-click on each of them in order to display their properties (or even better, their access rights), and tick the boxes that are not yet ticked, until a refresh of the "System and Permissions" page gives you only green folder.
Once you're done, click "Next" at the bottom of the page, the update will start and probably last a few minutes.
You can check if the update has started in the upper right part of the screen, thanks to the progress bar. Do not leave the page or close your browser; wait for the update to be completed. |
Visit your shop's update script URL; for instance: http://www.myprestashop.com/prestashop/install/upgrade/upgrade.php (Replace "myprestashop.com" with the actual URL of your store, and "prestashop" with the name of the folder that you have just transferred to your FTP).
If it returns a 404, then you might not have copied all the files from the latest PrestaShop 1.5 version. Go through this previous step again.
Once the update is finished, a XML file should be displayed in your browser. This is expected. It should begin with the following node:
<action result="ok"> |
On your FTP server, inside the "prestashop" folder, you should delete:
README
files (contain information about the PrestaShop install).CHANGELOG
file (contains information about the latest changes in PrestaShop).You can now access your store's front-office at http://www.myprestashop.com/prestashop (change the URL accordingly).
If you answered yes to all the questions above, then proceed to step 4. |
If you did export your custom translations during step 1 (Backups), import them back into your new store by going to the "Tools" tab, then the "Translations" sub-tab.
You should verify that the domain name assigned in the database is indeed the one that you are working with. To do so, visit the "Preferences" tab, then the "SEO & URLs" sub-tab.
You must check the following information:
/prestashop/
In any case, do not forget to regenerate your |
You can verify your theme's compatibility with the updated PrestaShop version by visiting the theme validator developed by PrestaShop.
This tool is available at the following address: http://validator.prestashop.com/.
If you use an unmodified copy of the default theme of PrestaShop, this step is not necessary.
To make sure that everything is working properly on your updated store, you should perform a few tests.
Testing To-Do List (this is not a complete list, you should do as much testing as possible):
If every test is successful, congratulations! Proceed to step 5. |
Congratulations, you have achieved all the essential steps to update your store!
You now need to swap your updated store with your production store.
You have two options to do so:
...or...
At the end of the process, edit the file |
Visit the "Preference" tab in the back-office of your production (now up-to-date) store and click "Yes" for the option "Enable Shop".