How to Install PrestaShop on Elementary OS Latest

In this tutorial, we will guide you step-by-step on how to install PrestaShop, an open-source e-commerce platform, on Elementary OS Latest.

Prerequisites

Before we begin, please make sure you have the following:

Step 1: Install Apache, PHP, and MySQL

  1. Open the terminal by pressing Ctrl + Alt + T on your keyboard.
  2. Update the package list by running the following command:
sudo apt update
  1. Install Apache by running the following command:
sudo apt install apache2
  1. Once Apache is installed, start the service:
sudo systemctl start apache2
  1. Install PHP and its dependencies:
sudo apt install php libapache2-mod-php php-mysql php-curl php-gd php-xml php-mbstring
  1. Install MySQL:
sudo apt install mysql-server
  1. Once MySQL is installed, secure the installation by running the following command:
sudo mysql_secure_installation

Step 2: Download PrestaShop

  1. Download the latest version of PrestaShop from their website: https://www.prestashop.com/en/download
  2. Extract the archive by right-clicking the downloaded file and selecting "Extract here".

Step 3: Configure Apache

  1. Open the Apache configuration file for editing:
sudo nano /etc/apache2/sites-available/000-default.conf
  1. Add the following lines of code at the very end of the file:
<Directory /var/www/html>
    AllowOverride All
</Directory>
  1. Save the file and exit the editor.

Step 4: Move PrestaShop to the Webserver Directory

  1. Move the extracted PrestaShop folder to the Apache webserver directory:
sudo mv /path/to/prestashop /var/www/html/
  1. Change the ownership of the PrestaShop folder to the Apache user:
sudo chown -R www-data:www-data /var/www/html/prestashop

Step 5: Create a MySQL Database for PrestaShop

  1. Log in to MySQL:
sudo mysql -u root -p
  1. Once logged in, create a new database:
CREATE DATABASE prestashop_db;
  1. Create a new user and grant them privileges on the database:
CREATE USER 'prestashop_user'@'localhost' IDENTIFIED BY 'your_password';
GRANT ALL PRIVILEGES ON prestashop_db.* TO 'prestashop_user'@'localhost';
FLUSH PRIVILEGES;
  1. Exit MySQL:
EXIT;

Step 6: Install PrestaShop

  1. Open your web browser and go to http://localhost/prestashop.
  2. Follow the on-screen instructions to install PrestaShop.
  3. When prompted for a database connection, use the following information:
  1. Finish the installation process.

Congratulations! You have successfully installed PrestaShop on Elementary OS Latest. You can now log in to the PrestaShop dashboard and start building your e-commerce website.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!