Introduction

PrestaShop is a popular open-source e-commerce platform used to build and manage online stores. Installing PrestaShop on Rocky Linux 9 allows you to create a powerful and customizable e-commerce website. In this guide, we'll walk you through the step-by-step process of installing PrestaShop on Rocky Linux 9.

Prerequisites

Before you begin, make sure you have the following:

  • A Rocky Linux 9 server with sudo privileges
  • Apache or Nginx web server installed and configured
  • PHP installed and configured
  • MySQL or MariaDB database server installed and configured

Step 1: Download PrestaShop

First, download the latest version of PrestaShop from the official website:

wget https://download.prestashop.com/download/releases/prestashop_1.7.8.2.zip

Unzip the downloaded file:

unzip prestashop_1.7.8.2.zip

Step 2: Move PrestaShop Files

Move the extracted PrestaShop files to your web server's document root directory. If you're using Apache, the default document root is /var/www/html. If you're using Nginx, it's typically /usr/share/nginx/html.

sudo mv prestashop /var/www/html/

Step 3: Set Permissions

Set the appropriate permissions on the PrestaShop directory:

sudo chown -R apache:apache /var/www/html/prestashop
sudo chmod -R 755 /var/www/html/prestashop

Step 4: Create a Database

Create a new MySQL or MariaDB database and user for PrestaShop:

mysql -u root -p
CREATE DATABASE prestashop;
CREATE USER 'prestashop'@'localhost' IDENTIFIED BY 'your_password';
GRANT ALL PRIVILEGES ON prestashop.* TO 'prestashop'@'localhost';
FLUSH PRIVILEGES;
EXIT;

Step 5: Complete Installation

Open a web browser and navigate to your PrestaShop installation URL (e.g., http://your_domain/prestashop). Follow the on-screen instructions to complete the installation process, providing the database information when prompted.

Conclusion

Congratulations! You've successfully installed PrestaShop on Rocky Linux 9. You can now start configuring your online store and adding products to begin selling.

Thank you for reading our guide on how to install PrestaShop on Rocky Linux 9. We hope you found it helpful!

Was this answer helpful? 0 Users Found This Useful (0 Votes)