PrestaShop 1.7

On this page, we explain step by step how to setup PrestaShop 1.7 with CloudPanel.

Installation

In the following example we will setup PrestaShop under the domain www.domain.com.

Preparation

Before we can start with the installation, we need to create an SSH User, a Database, and a Domain.

When you Add the Domain, make sure to select the PrestaShop 1.7 Vhost Template and the right PHP Version.



Installation

To install PrestaShop do the following steps:

  1. Login via SSH to the server e.g. with john-ssh and go to the users tmp directory:
cd ~/tmp
  1. Download and extract the latest PrestaShop 1.7 version.
curl -sL https://github.com/PrestaShop/PrestaShop/archive/1.7.6.8.tar.gz | tar xfz -
Latest Version

You find the latest version on github: https://github.com/PrestaShop/PrestaShop/releases

  1. Move files to the htdocs directory of the domain:
cp -R PrestaShop-1.7.6.8/* /home/cloudpanel/htdocs/www.domain.com/
  1. Install via composer:
cd /home/cloudpanel/htdocs/www.domain.com/
php7.2 /usr/local/bin/composer install
  1. Reset permissions.
cd /home/cloudpanel/htdocs/
clpctl system:permissions:reset www.domain.com 775
  1. Clean up the tmp directory.
rm -rf ~/tmp/*
  1. Open your domain in the browser and go through the Installation Wizard.
  1. Done! PrestaShop is now installed.