Table of Contents
Today, in this article, we show how to run PrestaShop on Ubuntu 22.04 Server. Anyone looking for a simple platform to manage and sell their products online would benefit from PrestaShop, a free-to-use, open-source e-commerce platform that offers an effective and innovative e-commerce solution.
Although it shares some similarities with WordPress, Prestashop is used exclusively for e-commerce. Prestashop can be installed with a single click on any cloud service or VPS provider marketplace using Ubuntu 20.04. More than 300 tools built into PrestaShop allow you to manage payment options, shipping, product listings, suppliers and customers.
The web template system used by PrestaShop allows you to change the store theme and apply additional modules. PrestaShop has some highlights features that enable users to grow their business and increase site reliability, such as sophisticated backup plans, high reliability, and simple accessibility. Mentioned below are the steps to how to install PrestaShop on Ubuntu 22.04 Server.
Steps to Install PrestaShop on Ubuntu 22.04 Server
Create Atlantic.Net Cloud Server
Step 1: First, log in to your Atlantic.Net Cloud Service. Create a new server, choosing Ubuntu 20.04 as the operating system with at least 2GB of RAM. Connect to your Cloud Server via SSH and login using the credentials highlighted at the top of the page.
apt-get update -y
Install Apache, MariaDB and PHP
Step 1: First, you will need to install Apache web server, MariaDB database, PHP and other packages on your system. You can install all of them with the following command
apt-get install apache2 mariadb-server php7.4 libapache2-mod-php7.4 php7.4-gd php7.4-mbstring php7.4-mysql php7.4-curl php-xml php-cli php7.4-intl php7 .4-zip unzip -y
Step 2: After installing all packages, edit the php.ini file:
nano /etc/php/7.4/apache2/php.ini
Step 3: Change the following settings as per your requirements:
memory_limit = 512Mpost_max_size = 32Mupload_max_filesize = 32Mdate.timezone = Asia/Calcutta
Step 4: Save and close the file and restart the Apache service to apply the change
systemctl restart apache2
Create a Presta store database
Next, you will need to create a database for PrestaShop to store your content.
Step 1: First, connect to MySQL with the following command:
mysql
Step 2: Once connected, create a database and user with the following command
CREATE DATABASE prestadb;GRANT ALL PRIVILEGES ON prestadb.* FOR ‘prestauser’@’localhost’ IDENTIFIED BY ‘password’;
Step 3: Then release the privileges to apply the changes:
FLUSH PRIVILEGES;
Step 4: Then exit MySQL with the following command:
EXIT;
Download Presta Shop
Step 1: First, go to the Presta Shop Git Hub repository page and download the latest version of Presta Shop with the following command
wget
Configure Apache for PrestaShop
Step 1: Next, you will need to create an Apache virtual host configuration file to host PrestaShop. You can create it with the following command
nano /etc/apache2/sites-available/prestashop.conf
Step 2: Save and close the file and enable PrestaShop virtual host with the following command
a2ensite prestashop
Step 3: Then enable the Apache rewrite module and restart the Apache service to apply the changes:
a2enmod rewritesystemctl restart apache2
Final Words
We hope you like our article on how to install PrestaShop on Ubuntu 22.04 Server. You can quickly build your own online store using PrestaShop, an e-commerce solution. It is written in PHP, has a lot of customization, supports all major payment services, is localized to many countries and translated into many languages, has a fully responsive front and back office, etc.