In this tutorial we will show you how to install PrestaShop on CentOS 8. For those of you who didn’t know, PrestaShop is a free e-Commerce shopping cart software suite for small to large businesses. It’s open source under the OSL license, and has an extensive range of modules and themes so you can customize the look and features to better suit your own situation.
This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation PrestaShop on a CentOS 8 server.
Install PrestaShop on CentOS 8
Step 1. First of all make sure that all packages are up to date.
Step 2. Installing LAMP Stack.
If you don’t have a LAMP stack already installed on your server, you can follow our guide here. Also install required PHP modules, run the command below to install other required PHP extensions for PrestaShop:
First thing to do is to go to PrestaShop’s download page and download the latest stable version of PrestaShop:
Give proper permissions to the web root directory with the following command:
By default, MariaDB is not hardened. You can secure MariaDB using the mysql_secure_installation script. You should read and below each steps carefully which will set root password, remove anonymous users, disallow remote root login, and remove the test database and access to secure MariaDB.
Configure it like this:
Next we will need to log in to the MariaDB console and create a database for the PrestaShop. Run the following command:
This will prompt you for a password, so enter your MariaDB root password and hit Enter. Once you are logged in to your database server you need to create a database for PrestaShop installation:
We will create Apache virtual host for your Joomla website. First create ‘/etc/httpd/conf.d/vhosts.conf’ file with using a text editor of your choice:
Next, create the virtual host:
Add the following lines:
Save and close the file. Restart the Apache service for the changes to take effects:
In case OS firewall enabled on your server then provide access to port 80 and 443 to be accessed from outside the network:
PrestaShop will be available on HTTP port 80 by default. Open your favorite browser and navigate to http://your-domain.com/ or http://your-server-ip and follow the on screen instructions to complete the installation.
Congratulation’s! You have successfully installed PrestaShop. Thanks for using this tutorial for installing PrestaShop eCommerce shopping cart on CentOS 8 system. For additional help or useful information, we recommend you to check the official PrestaShop website.