The Right Way to Install PrestaShop on Almalinux 8 10

Tutorial to be taught the steps for putting in the Ecommerce Prestashop retailer on Almalinux 8 server to begin promoting your merchandise on-line.

What is PrestaShop?

As an open-source procuring cart, PrestaShop is totally free to obtain and use. However, this doesn’t imply that PrestaShop is a zero-cost eCommerce resolution. When you obtain the software program, you must pay for webhosting. You’ll additionally doubtless want to purchase a number of (typically costly) modules to combine completely different software program into your web site. If you may have restricted technical data, you may contemplate investing in an internet developer that can assist you via the troublesome spots.

Well, Prestashop will not be alone out there offering each paid and free options, there are different well-liked gamers equivalent to Magento. However, in case you are searching for an easy-to-use e-commerce resolution for small to medium-sized companies then PrestaShop is sweet to go.

Steps to Install PrestaShop on Almalinux 8

1. Requirements

To carry out this tutorial to setup Prestashop, we’d like RPM-based Almalinux,  Apache web-server, MySQL/MariaDB with PHP. Also, the consumer will need to have no less than a non-root consumer with sudo entry.

First, disable Selinux momentary:

sudo setenforce 0


2. Run DNF replace

Core applied sciences and platforms we have to run PrestaShop are already accessible to install from the official bundle supply of AlmaLinuix, due to this fact, let’s first run the system replace and improve command. This will guarantee all of the put in packages on our server system are updated.

sudo dnf replace && sudo dnf improve

Also, install:

sudo dnf install nano wget unzip


2. Install LAMP Server on Almalinux 8

LAMP server is a stack of a number of applied sciences, which features a Linux Platform, Apache, MySQL, and PHP. So, let’s first install this on our Almalinux 8 earlier than shifting additional.

• Apache Webserver

Like most Linux servers, Apache net server packages are already accessible to install utilizing the default base repository of Almalinux 8. Therefore, simply use the DNF bundle supervisor to set it up in your Linux.

sudo dnf install httpd

Enable and begin the service:

sudo systemctl allow --now httpd

Check standing:

sudo systemctl standing httpd


• Install PHP and required extensions

The default steady model of PHP accessible to install from the bottom repository of PHP is 7.4. Hence to install it together with required extensions for Prestashop use the given command:

sudo dnf install php php-{zip,xml,gd,curl,intl,xmlrpc,mbstring,mysqli,bcmath,dom,posix,cli,pdo,posix,fpm,fileinfo,json,iconv}

Next, enhance the PHP reminiscence and file add limits:

sudo sed -i 's/memory_limit = .*/memory_limit = 256M/' /and so forth/php.ini
sudo sed -i 's/post_max_size = .*/post_max_size = 64M/' /and so forth/php.ini
sudo sed -i 's/upload_max_filesize = .*/upload_max_filesize = 64M/' /and so forth/php.ini


• Install MariaDB Server

To retailer the information generated by the PrestaShop we’d like a database server, right here we’re utilizing MariaDB. To install it run:

sudo dnf install mariadb-server mariadb

Start and allow its companies:

sudo systemctl allow --now mariadb


3. Create a Database for PrestaShop

Once you may have the Database server in your Almalinux, subsequent create a database desk, consumer, and password for a similar. However, earlier than that allow’s safe our server occasion:

sudo mysql_secure_installation

Follow the guided steps to create MySQL root consumer password, take away demo database, restrict distant login, take away and an nameless consumer.

Now, Create a Database:

Login to your database server

sudo mysql -u root -p

Enter the password you may have set for its root consumer.

After that comply with the given command to create a database. Don’t overlook to vary yourdb, youruser and yourpassword values with no matter you wish to set for the database.

CREATE USER 'youruser'@'localhost' IDENTIFIED BY 'yourpassword';
GRANT ALL PRIVILEGES ON yourdb.* TO 'youruser'@'localhost';


4. Download PrestaShop

The PrestaShop bundle will not be accessible to obtain utilizing the official repository of AlmaLinux, due to this fact we have to get it manually from its Github repo. Visit it and obtain the most recent accessible launch.

Alternatively, you need to use the terminal to obtain it. Right-click on the most recent accessible after which copy the hyperlink of the file.

Download the latest prestashop

In your terminal: 

wget paste-link

For instance:


Extract the downloaded file to your webroot listing:

sudo unzip prestashop_*.zip -d /var/www/html/

Give Apache consumer permission to entry the extracted information:

sudo chown -R apache:apache /var/www/html/
sudo chmod -R 775 /var/www/html/



Open ports within the firewall:

If you’re utilizing cloud internet hosting then open the ports in its firewall as an alternative of OS.

sudo firewall-cmd --permanent --zone=public --add-service=http
sudo firewall-cmd --permanent --zone=public --add-service=https
sudo systemctl reload firewalld


5. Install PrestaShop On Almalinux 8

Now, to begin the PrestaShop retailer setup, run your system browser and level it to the IP deal with or area pointed of the server the place you may have put in PrestaShop.

Example: http://server-ip-address or

Select Instalaltion language:

Prestashop install on Almalinux 8

Create Store by including Shop title, Main exercise, Install Demo knowledge (if wanted), Country, Enable SSL (non-obligatory) within the details about the shop.

After that create an admin account.

Create ecommerce store on Prestashop

Enter the small print of the Database you may have created for Prestashop.

Setup Database for PRestashop



Other Articles:

The Right Way to Install PrestaShop on Ubuntu 20.04 Server
The Right Way to Install Prestashop modules manually
Install Apache, MySQL, and PHP on AlmaLinux 8
The Right Way to Install Anydesk on Almalinux 8




The Right Way to Install Skype on Almalinux 8 using terminal

Previous article

The Right Way to Install Anydesk on Almalinux 8

Next article

You may also like


Leave a Reply

More in Almalinux