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
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 > CREATE DATABASE presta; > GRANT ALL PRIVILEGES ON presta.* TO 'prestauser'@'localhost' IDENTIFIED BY 'prestapss'; > FLUSH PRIVILEGES; > exit;
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/1.7.6.0/prestashop_1.7.6.0.zip
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 admin@your_domain.com    DocumentRoot /var/www/html/prestashop ServerName your-domain.com <Directory /var/www/html/prestashop> Options FollowSymlinks AllowOverride All Require all granted </Directory> ErrorLog ${APACHE_LOG_DIR}/your-domain.com_error.log CustomLog ${APACHE_LOG_DIR}/your-domain.com_access.log combined </VirtualHost>
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.
Next, accept the License terms.
Then, type the site information.
Next, test the database connection. In this step, you have to type the credentials.
Finally, wait some time and that is it.
Conclusion
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.
why the last five pictures are windows server screens?
It is a server error. But the steps are fine!
Thank you for a great procedure.
However the Prestashop installation files ended up in /www/html/prestashop
Is this correct ?
I would expect it to end up in /www/html/
How will prestashop now run under a domain example : http://www.myshop.com
With this is will be http://www.myshop.com/prestashop/