37.6 C
Senior Writer and partner

Install Prestashop on Debian 10

It is fair to say that the Internet has revolutionized world trade. Now large and small businesses have access to technologies that allow them to deploy a website to show what they offer. Some of these technologies allow them to transact with each other. On the other hand, the great advantage of using Linux is that many of these tools have versions for this system. One of them is Prestashop. This interesting tool allows you to create websites with E-commerce management for any business. In this post, you will learn how to install Prestashop on Debian 10, Buster.

Prestashop ideal for the E-commerce

Prestashop is an open-source web application, written in PHP that allows you to create and deploy a website for a business. To some extent, it is similar to WordPress but Prestashop adds unique features for a business.

Some of its features are:

  • Allows you to create a catalog of products
  • With Prestashop, you can deploy a payment system
  • Customer Service System
  • You can manage shipments of products.

So, let us start.

Install Prestashop on Debian 10

1) Install LAMP on Debian 10

- Advertisement -

The first step to install Prestashop is to have a functional LAMP server. To do this, we invite you to read our post about it.

Read How to install LAMP on Debian 10?

Just pay attention to install the following PHP modules.

php7.3 php7.3-gd php7.3-mbstring php7.3-mysql php7.3-curl php-xml php-cli php7.3-intl php7.3-zip

2) Create the database and the MariaDB user

Now that the LAMP server is running, it is necessary to create a new database and a user for Prestashop. So go to the MariaDB console and do the process. Use the root user.

:~# mysql -u root -p
> GRANT ALL PRIVILEGES ON presta.* TO 'prestauser'@'localhost' IDENTIFIED BY 'prestapss';
> exit;

1.- Creating the new MariaDB user and database for Prestashop
1.- Creating the new MariaDB user and database for Prestashop

3) Install Prestashop on Debian 10

Now we can install Prestashop on Debian 10. To do this, download the latest version available from Github. To do this, use wget and then use unzip to decompress it. Therefore, it is necessary to install them previously.

:~# apt install wget unzip
:~# cd /tmp/
:~# wget -c https://github.com/PrestaShop/PrestaShop/releases/download/

2.- Download and install Prestashop on Debian 10
2.- Download and install Prestashop on Debian 10

Then, create a new folder and decompress the file on it.

:~# mkdir prestashop
:~# unzip prestashop_1.7.6.0.zip -d prestashop/
:~# cd prestashop && unzip prestashop.zip

After that, move it to the Apache document root. Next, changes the folder owner and set the right permissions.

:~# cd ..
:~# mv prestashop /var/www/html/
:~# chown -R www-data:www-data /var/www/html/prestashop/
:~# chmod -R 755 /var/www/html/prestashop

Now, create a new Virtualhost for Prestashop.

:~# nano /etc/apache2/sites-available/prestashop.conf

And add the following:

<VirtualHost *:80>
     ServerAdmin [email protected]_domain.com
      DocumentRoot /var/www/html/prestashop
     ServerName your-domain.com

     <Directory /var/www/html/prestashop>
          Options FollowSymlinks
          AllowOverride All
          Require all granted

     ErrorLog ${APACHE_LOG_DIR}/your-domain.com_error.log
     CustomLog ${APACHE_LOG_DIR}/your-domain.com_access.log combined


3.- Creating a new virtualhost for Prestashop
3.- Creating a new virtualhost for Prestashop

On ServerName type your server name.

Save the changes and close the file.

Then, enable the new Virtualhost, the Apache Rewrite module and restart Apache.

:~# ln -s /etc/apache2/sites-available/prestashop.conf /etc/apache2/sites-enabled/prestashop.conf
:~# a2enmod rewrite
:~# systemctl restart apache2

4) Install Prestashop on Debian 10 (II)

Now open your web browser and go to your server to complete the installation. You will see the following screen.

4.- Install Prestashop on Debian 10
4.- Install Prestashop on Debian 10

Next, accept the License terms.

5.- License terms
5.- License terms

Then, type the site information.

6.- Site information
6.- Site information

Next, test the database connection. In this step, you have to type the credentials.

7.- Database connection
7.- Database connection

Finally, wait some time and that is it.

8.- Installing Prestashop
8.- Installing Prestashop


Prestashop is ideal for deploying websites focused on businesses and trades. This way it is possible to install it in Debian 10 in a very fast and easy way. All this with a robust application with many important features for the sector. Today you have learned to install it in Debian 10.

Please share this post with your friends and join our Telegram channel.



Please enter your comment!
Please enter your name here

Latest article