Install PrestaShop on Plesk
Install PrestaShop on your Plesk hosting: PHP configuration, database, file upload, installation wizard, back office access and fixes for common errors.
On this page
Your values
Enter them once and the commands in this guide update.
This guide shows you how to install PrestaShop on your Plesk hosting with the official package, then check that your store and its back office are working.
Prerequisites
- Access to your Plesk panel (see Connect to Plesk interface).
- A domain attached to your hosting and pointing to it.
- An empty
httpdocsfolder, or a backup of it if it already contains a site.
This guide uses httpdocs, the usual folder for the main domain. For an additional domain, the folder may be different: check the Document root under Hosting & DNS > Hosting.
Here are the official requirements for PrestaShop 9, the current branch at the time of writing. Check them in the PrestaShop documentation before installing another version.
| Item | Requirement |
|---|---|
| PHP for PrestaShop 9.1 and 9.2 | 8.1 to 8.5, version 8.5 recommended |
| PHP for PrestaShop 9.0 | 8.1 to 8.4, version 8.4 recommended |
| Database | MySQL 5.7 or MariaDB 10.2 minimum, recent version advised |
memory_limit |
512M minimum |
allow_url_fopen |
Enabled |
| PHP extensions | cURL, DOM, Fileinfo, GD, Iconv, Intl, JSON, Mbstring, OpenSSL, PDO, PDO MySQL, SimpleXML, Zip |
Step 1: configure PHP
- Go to Websites & Domains and find your domain.
- Open PHP (or PHP Settings, depending on your Plesk version).
- Select a compatible PHP version.
- Set
memory_limitto512Mand enableallow_url_fopen. - Save.
The View the phpinfo() page link lets you check the applied values and the loaded extensions.
Step 2: create the database
Create a database and a dedicated user by following the Create a database guide. Write down exactly:
- the database name;
- the username;
- the password;
- the database server address, shown in the database connection information (often
localhost).
Step 3: download PrestaShop
-
Go to the official download page and get the ready-to-use installation package.
-
Unzip the archive on your computer. It contains, among other things:
Textindex.php prestashop.zip Install_PrestaShop.html
Step 4: upload the files
- In Plesk, open Files, then the
httpdocsfolder. - Delete the default
index.htmlpage if it is there. Otherwise, it would be displayed instead of the installation wizard. - Upload
index.phpandprestashop.zip. TheInstall_PrestaShop.htmlfile is not needed.
You can also upload these files with an FTP client (see Change your FTP password).
Step 5: run the installation wizard
Open https://your-domain.com/ in your browser. The index.php file automatically unpacks prestashop.zip, then the wizard starts. If your domain does not have a valid SSL certificate yet, use http:// temporarily.
Then follow the screens:
- Choose your language: select the installation language.
- License agreements: read and accept the terms.
- System compatibility: the wizard checks your environment. Fix any reported issues, then run the check again.
- Store information: enter the store name, its main activity and its country, along with the name, email address and password of the administrator account. Choose a strong password that is unique to this site.
- Content of your store: indicate whether you want to install the demo products. They are useful for discovering the software, but unnecessary on a production store.
- System configuration: enter the server address, database name, user and password noted in step 2. Change the
ps_table prefix if you wish, then run the connection test. - Store installation: wait without closing the page until the final screen appears.
Step 6: finalize and secure
Note the back office address
At the end of the installation, PrestaShop automatically renames the admin folder with a unique name made up of admin followed by numbers and letters. This name is part of your back office address:
https://your-domain.com/admin123abcdefghijklmnop/Use the link on the final screen, bookmark this address and keep it somewhere safe. If you lose it, find the folder in httpdocs with the file manager.
Check that the install folder has been deleted
Recent versions, including 9.2.1, try to delete this folder themselves, even if the final screen still asks you to do it. Open httpdocs: if an install folder is still there, delete it. Leaving it in place exposes your store to a security risk.
Also delete prestashop.zip if it is still there.
Check the result
- Open
https://your-domain.com/: the store home page should be displayed. - Open the back office address and log in with the administrator account.
- Check that
https://your-domain.com/install/no longer displays the wizard. - Browse a product page, then add an item to the cart.
Troubleshooting
The default Plesk page is displayed
The index.html file takes priority over index.php. Delete it from httpdocs or rename it, then reload the page, bypassing your browser cache.
Automatic unpacking fails or hangs
In Files, select prestashop.zip, click Extract Files to httpdocs, then open https://your-domain.com/install/. Also check that enough disk space is available.
The compatibility step reports an error
The message names the extension or setting at fault. Correct it in PHP, then run the check again. If the extension cannot be enabled from your panel, contact support.
Database Server is not found. Please verify the login, password and server fields
Check the server address, the user and the password. Try localhost, then 127.0.0.1, or the full value shown by Plesk, with its port in host:port format.
Connection to MySQL server succeeded, but database "..." not found
The database name is incorrect. Copy it exactly from the Plesk Databases page, as it may include a prefix.
At least one table with same prefix was already found
The database already contains tables with this prefix. Choose a different prefix or use an empty database. Only delete the existing tables after checking that no other site uses them.
The admin folder could not be renamed into ...
PrestaShop could not rename the admin folder. Check that no folder with the same name exists and that the permissions on httpdocs are correct, then contact support if the problem persists.
500 error or blank page
Check the domain's Logs as well as the PrestaShop var/logs folder. Then check the memory_limit value. If you can reach the back office, debug mode is under Advanced Parameters > Performance. Turn it off once you have finished troubleshooting.
Product pages return a 404 error
Friendly URLs rely on the .htaccess file. In the back office, open the SEO and URL settings (Shop Parameters > Traffic & SEO), then save them to regenerate it. If the error persists, check with support that .htaccess rules are supported for your domain.
Cannot find the back office
The /admin address no longer works after installation, which is normal. Look in httpdocs for the folder whose name starts with admin, then add this name to your address.