How to Install PrestaShop on CyberPanel

Install PrestaShop on CyberPanel - Self-Hosted eCommerce Site

PrestaShop is a self-hosted store builder popular for its search engine optimization (SEO) features and scalability, particularly in comparison to OpenCart. CyberPanel allows you to quickly install PrestaShop 1.7 with a few clicks. 

Below we’ll cover how to deploy PrestaShop on a CyberPanel VPS with the app installer and manually.

CyberPanel PrestaShop Application Installer

This is the fastest option for installing PrestaShop in CyberPanel.

alert alert-warning This method does not install the latest version of PrestaShop. You’ll need to upgrade your shop manually afterwards if you wish to use the latest stable version.

  1. Log into CyberPanel.
  2. On the left, select Websites > Create Website.
  3. Specify the feature package, CyberPanel user to manage the site, domain (without “www”), and email account.
  4. Choose PHP version 7.3 as it is the latest version supported by PrestaShop 1.7.8.3.
  5. Enable additional features as desired such as SSL certificate creation if configured on your server.
  6. Select Create Website at the bottom. This may take a few minutes.
  7. On the left, select Websites > List Websites.
  8. Select Manage on the right-side of the website domain.
    List websites in CyberPanel
  9. At the bottom, select PrestaShop.
    CyberPanel PrestaShop app installer
  10. Add your shop name, name, email account, and password.
    Add PrestaShop info in CyberPanel app installer
  11. Changing the database prefix is optional.
  12. Select Install Now.
  13. View your online store URL in the web browser. It may redirect to add your language code (e.g. example.com/en/).
  14. Log into the admin dashboard by adding “/admin” to the end of your PrestaShop domain (example.com/admin). It will redirect to add alphanumeric characters after “admin” for security by obfuscation.
Log into PrestaShop 17

PrestaShop CyberPanel Integration

The app installer leaves some unnecessary files on the server. You should remove the following files from SSH or the file manager post-installation:

  • Install_PrestaShop.html
  • INSTALL.txt
  • prestashop_1.7.8.3.zip
  • prestashop.zip

When you upgrade PrestaShop, you can change the PHP version in Websites > List Websites > Manage > Change PHP.

Find PrestaShop Database Info

The generated database name and user will be a combination of random alphanumeric characters. You can modify the database data, user password, and user access from CyberPanel and natively installed phpMyAdmin.

There are multiple ways to confirm which database belongs to PrestaShop. From CyberPanel:

  1. Select Databases > phpMyAdmin.
  2. Select a database on the left-side with over a dozen alphanumeric characters.
  3. Check that the table prefix matches “ps_” or your custom prefix from the initial installation process.
  4. If you have more than one PrestaShop store, select the database and search for “shop_url” on the right.
    Find PrestaShop URL in phpMyAdmin
  5. Select the table name to reveal the domain for that PrestaShop database.

From the file manager or SSH, simply check “/home/YOURDOMAIN/public_html/app/config/parameters.php” for all database information.

Continue learning about PrestaShop below.

How to Install PrestaShop 1.7 on CyberPanel Manually

This section guides you through manually installing the PrestaShop eCommerce store on your CyberPanel server.

  1. Log into CyberPanel.
  2. Create a user to manage the new PrestaShop site if necessary.
  3. On the left, select Websites > Create Website.
  4. Specify the feature package, CyberPanel user to manage the site, domain (without “www”), and email account.
  5. Choose PHP version 7.3 as it is the latest version supported by PrestaShop 1.7.
  6. Enable additional features as desired such as SSL certificate creation if configured on your server.
  7. Select Create Website. This may take a few minutes.
  8. From the sidebar, select Databases > Create Database.
  9. Select the PrestaShop domain from the drop-down list.
    Create MySQL database in CyberPanel
  10. Type a database name suffix. The full database name will automatically populate on the right.
  11. Create a user name. The full database user name will show on the right.
  12. Type a strong passphrase and save it in a password manager. You’ll need this later.
  13. Select Create Database.
  14. Continue to follow the PrestaShop tutorial with the file manager or Secure Shell (SSH).

Install PrestaShop with CyberPanel File Manager

This subsection is best for inexperienced terminal users.

  1. Select Websites > List Websites.
  2. Select File Manager on the right-side of the website.
    List websites in CyberPanel
  3. Double-click on public_html.
    CyberPanel File Manager
  4. Right-click on the default index.html file and delete it.
  5. Download the latest PrestaShop version to your PC.
  6. Select Upload at the top of CyberPanel.
  7. Browse for and select the PrestaShop zip file you downloaded.
  8. Select Upload.
  9. Once a check shows under “Status,” exit the pop-up window from the upper-right corner.
  10. Right-click on the zip file and select Extract.
  11. Finalize the PrestaShop setup.

Install PrestaShop with SSH

This subsection covers using the command-line interface (CLI) for those with SSH access.

  1. Log into SSH.
  2. Navigate to the website directory, replacing “YOURDOMAIN” with the PrestaShop domain:
    cd /home/YOURDOMAIN/public_html/
  3. Remove the default index.html file:
    rm index.html
  4. Go to the PrestaShop downloads page.
  5. Right-click on the Download link for the latest PrestaShop version and copy the link.
  6. In the terminal, type “wget” and paste the PrestaShop download link (usually Ctrl + Shift + V). Remove everything after “.zip” (“?token=?????”). To download PrestaShop version 1.7.8.6, for example:
    wget https://www.prestashop.com/en/system/files/ps_releases/prestashop_1.7.8.6.zip
  7. Extract the zip file (change the file to what you downloaded):
    unzip prestashop_1.7.8.6.zip
  8. Finalize the PrestaShop setup.

Finalize PrestaShop Installation

This is the last part to complete the manual installation process.

  1. Visit your PrestaShop domain in a web browser.
  2. Select your preferred language and select Next.
    Set preferred PrestaShop wizard language
  3. Once you agree to the license agreement, select Next.
    Agree to PrestaShop licenses
  4. Fill out all information about your new online store and select Next.
  5. Add your database name, database user, and database user password. Then, test your database connection.
    Add PrestaShop database info
  6. Once you see “Database is connected,” select Next to finalize the installation process. Once the installation finishes, leave the page open.
  7. Back in the file manager or SSH, remove the “install” directory. If you’re unable to remove the “install” directory from the file manager, you’ll need to use SSH or FTP to do so until the bug is resolved by CyberPanel developers.
  8. Delete the following files for security purposes: Install_PrestaShop.html, INSTALL.txt, prestashop_1.7.8.3.zip, and prestashop.zip.
  9. Now, on the PrestaShop installation page, select Manage your store under “Back Office” to login.
    PrestaShop store installation complete

Getting Started with PrestaShop 1.7

Here are some recommendations to get you started:

Learn to do more with your website from our PrestaShop Education Channel.

No matter if you're a developer, system administrator, or simply a fan of SSH and command line, InMotion's Cloud Hosting plans provide a fast, scalable environment that is budget-friendly.

InMotion Hosting Contributor
InMotion Hosting Contributor Content Writer

InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!

More Articles by InMotion Hosting

Was this article helpful? Join the conversation!