PrestaShop is a widely-used, open-source eCommerce platform that enables businesses to create and manage online stores. It offers a robust and scalable solution for businesses of all sizes, providing essential eCommerce features such as inventory management, payment gateways, shipping, and customer management. PrestaShop is known for its flexibility, as it can be customized with various modules and themes, making it ideal for unique business requirements.

With PrestaShop, you can easily launch an online store with control over design, functionality, and the overall customer experience.


Creating an Instance on Cloud.shape.host

Step 1: Access the Dashboard and Create an Instance

Log in to your Cloud.shape.host account, and from the dashboard, click Create and select Instances.

Shape.host Resources dashboard with Create > Instance highlighted.

Step 2: Choose a Datacenter Location

Pick a datacenter location based on your target audience’s location or proximity to reduce latency. Cloud.shape.host provides options like New York, London, Frankfurt, etc.

Shape.host instance form with the data center location selector highlighted.

Step 3: Select a Plan

Select a plan that fits your business needs, such as Standard, CPU-Optimized, or Memory-Optimized, depending on the traffic and resources required by your online store.

Step 4: Choose an Operating System

Select Ubuntu 24.04 for the instance.

Shape.host instance form with the operating system image selector highlighted.

Step 5: Configure and Launch the Instance

Configure your instance’s Network Type and Authentication Method (SSH key or password), name your instance, and click Create Instance.

Shape.host instance form with the Create Instance button highlighted.

Locate Your Instance’s IP Address

Shape.host Resources dashboard with the server IP address highlighted.

Accessing Your Instance

Once the instance is created, you can access it using SSH:

  • SSH (for Linux/macOS):
   ssh root@<your-instance-ip>

Replace <your-instance-ip> with your instance’s public IP.

  • PuTTY (for Windows):
    Download PuTTY, enter the public IP, and click Open.

Step-by-Step Installation Process:

Step 1: Update and Upgrade System

apt update -y
apt upgrade -y
Terminal showing APT package management commands and output.

Step 2: Install Required Packages

Install Apache, MariaDB, Composer, Git, PHP, and necessary extensions:

apt install apache2 mariadb-server composer git php php-curl php-xmlrpc php-soap php-intl php-zip php-cli php-mysql php-common php-opcache php-memcached php-bcmath php-gd php-mbstring php-xml php-gmp php-imagick
Terminal showing APT package management commands and output.

Step 3: Check Apache and MariaDB Status

Ensure both Apache and MariaDB are running:

systemctl is-enabled apache2
sudo systemctl status apache2
systemctl is-enabled mariadb
systemctl status mariadb
Terminal showing systemd service management commands or output.
Terminal showing systemd service management commands or output.

Step 4: Verify PHP Version and Installed Modules

php -v
php -m
Terminal showing php commands or output during Verify PHP Version and Installed Modules.

Step 5: Check Composer Installation

Ensure Composer is installed correctly:

sudo -u www-data composer --version
Terminal showing composer commands or output during Check Composer Installation.

Step 6: Configure PHP Settings

Edit the PHP configuration:

nano /etc/php/8.3/apache2/php.ini
Terminal showing composer commands or output during Configure PHP Settings.

Make these changes:

date.timezone = Europe/Amsterdam
max_execution_time = 130
memory_limit = 256M
allow_url_fopen = On
allow_url_include = Off
post_max_size = 128M
upload_max_filesize = 128M
max_input_vars = 5000

Save and Exit:

  • Press CTRL + O, then Enter to save.
  • Press CTRL + X to exit Nano.

Step 7: Restart Apache

systemctl restart apache2
Terminal showing systemd service management commands or output.

Step 8: Secure MariaDB and Create Database

Run the MariaDB secure installation:

mariadb-secure-installation
Terminal showing MariaDB/MySQL database security configuration prompts.
Terminal showing mariadb commands or output during Secure MariaDB and Create Database.

Log into MariaDB and create a database:

mariadb -u root -p

Execute the following SQL queries:

CREATE DATABASE prestashopdb;
CREATE USER prestashop@localhost IDENTIFIED BY 'p4ssword';
GRANT ALL PRIVILEGES on prestashopdb.* TO prestashop@localhost;
FLUSH PRIVILEGES;
SHOW GRANTS FOR prestashop@localhost;

Type quit to exit.

Terminal showing SQL database and user configuration commands.

Step 9: Download PrestaShop

Navigate to the web directory:

cd /var/www/html
wget https://github.com/PrestaShop/php-ps-info/archive/refs/tags/v1.1.tar.gz
Terminal showing file download commands and transfer output.

Download PrestaShop:

tar -xf v1.1.tar.gz
mv php-ps-info-1.1 ps-check
mkdir -p /var/www/prestashop
cd /var/www/prestashop
wget https://github.com/PrestaShop/PrestaShop/releases/download/8.1.6/prestashop_8.1.6.zip
unzip prestashop_8.1.6.zip
Terminal showing file and directory setup commands.
Terminal showing the PrestaShop directory creation command.
Terminal showing file download commands and transfer output.
Terminal showing unzip commands or output during Download PrestaShop.

Step 10: Set Permissions

chown -R www-data:www-data /var/www/prestashop
chmod u+rw /var/www/prestashop
Terminal showing file ownership or permission commands.

Step 11: Enable Apache Modules

a2enmod rewrite headers ssl
Terminal showing systemd service management commands or output.

Step 12: Configure Apache for PrestaShop

Create a new Apache configuration file:

nano /etc/apache2/sites-available/prestashop.conf
Terminal showing nano commands or output during Configure Apache for PrestaShop.

Add this configuration:

<VirtualHost *:80>
    ServerName your.domain.com
    ServerAdmin admin@example.com
    DocumentRoot /var/www/prestashop

    <Directory /var/www/prestashop>
        AllowOverride All
        Options +Indexes
        Require all granted
    </Directory>

    ErrorLog /var/log/apache2/prestashop_error.log
    CustomLog /var/log/apache2/prestashop_access.log combined
</VirtualHost>
Terminal showing web server configuration text.

Save and Exit:

  • Press CTRL + O, then Enter to save.
  • Press CTRL + X to exit Nano.

Step 13: Enable PrestaShop Site and Restart Apache

a2ensite prestashop.conf
apachectl configtest
systemctl restart apache2
Terminal showing an Apache configuration test.
Terminal showing systemd service management commands or output.

Step 14: Install SSL with Certbot

Install Certbot and obtain an SSL certificate:

apt install certbot python3-certbot-apache
certbot --apache --agree-tos --no-eff-email --redirect --hsts --staple-ocsp --email contact@shape.host -d tutorials.shape.host
Terminal showing APT package management commands and output.
Terminal showing Certbot certificate commands and messages.

Accessing PrestaShop

Once installation is complete, access PrestaShop by visiting:

http://your-domain.com

Step-by-Step Guide to Installing PrestaShop 8.1.6

1. Choose Your Language

When you first start the installation process, you will be prompted to select the language for your PrestaShop setup. In this example, English is chosen. Once you’ve made your selection, click Next to proceed.

PrestaShop setup interface.

2. Accept License Agreements

You must review and accept the PrestaShop license agreements to continue with the installation. These licenses include the OSL 3.0 for the core of PrestaShop and AFL 3.0 for modules and themes. Once you’ve read through the terms, check the box to agree, then click Next.

PrestaShop setup interface.

3. Store Information Setup

In this step, you will enter key details about your store. Fill out fields such as the store name, main activity, country, and time zone. You will also need to set up your admin account by providing your name, email address, and a secure password. Click Next to move on.

PrestaShop installer store and administrator information form.

4. Store Content Configuration

You have the option to install demo products and select modules to install. Installing demo products is useful if you’re new to PrestaShop and want to familiarize yourself with how everything works. You can also choose to install all recommended modules for a complete store setup. Once you’ve made your choices, click Next.

PrestaShop setup interface.

5. Configure Your Database

Enter your database connection details, including the server address, database name, login credentials, and a table prefix. The default database port (3306) is used here. Once you’ve filled out the required fields, click on Test your database connection now to ensure everything is correct, and then hit Next to continue.

PrestaShop installer database connection settings.

6. Installation Progress

The installer will now proceed to create the necessary files and tables for your store. You can track the progress of this process with the status bar. Once it reaches 100%, the installation will be complete.

PrestaShop setup interface.

7. Logging into the Admin Panel

Once the installation is finished, you will be directed to the admin login page. Enter the email address and password you created earlier to access the backend of your new PrestaShop store.

PrestaShop sign-in form.

8. PrestaShop Admin Dashboard

After logging in, you will be greeted with the PrestaShop dashboard. From here, you can manage orders, products, customers, and more. The dashboard provides key insights into store performance, including active shopping carts, pending orders, and site traffic.

PrestaShop dashboard.

(Screenshot 8)

Step 15: Finalize Installation

Remove the installation directory after setup:

rm -rf /var/www/prestashop/install
Terminal showing rm commands or output during Finalize Installation.

For reliable and scalable hosting, consider Shape.Host’s Linux VPS services, which offer the performance and security necessary to host your PrestaShop eCommerce platform.