How to Install PrestaShop on Manjaro

Description:

PrestaShop is a popular e-commerce platform that can be used to create an online store. Manjaro is a user-friendly Linux distribution that is known for its stability and reliability. This tutorial will guide you step by step through the process of installing PrestaShop on Manjaro.

Prerequisites:

Steps:

  1. Download the Latest Version of PrestaShop from the [Official Website] (https://www.prestashop.com/en/).

    • You can download the zipped version.
    • Extract the downloaded file.
  2. Move the PrestaShop Directory to your Web Server Document Root.

    • Document Root means the directory where your web server looks for the files to serve on the web.
    • In Manjaro, the Document Root is /srv/http/.
    • Copy the extracted PrestaShop directory and move it to /srv/http/.
  3. Change User and Group Permissions to the Web Server User.

    • In Manjaro, the Apache Web Server user is “http”.
    • Run the following command to give the web server user and group permission:
    sudo chown -R http:http /srv/http/prestashop/
    
  4. Create a New Database and User Account in MariaDB.

    • Log in to MariDB:
    mysql -u root -p
    
    • Create a new database for PrestaShop
    CREATE DATABASE prestashop;
    
    • Create a new user account for that database:
    CREATE USER 'prestashop_user'@'localhost' IDENTIFIED BY 'YOUR_PASSWORD';
    
    • Grant All Privileges of that database to the new user:
    GRANT ALL PRIVILEGES ON prestashop.* TO 'prestashop_user'@'localhost';
    
  5. Configure PHP Settings for PrestaShop.

    • Open httpd-php.ini file which is located in /etc/php/php.ini.
    • Change the timezone according to your location:
    date.timezone = TIMEZONE
    
    • Un-comment the following two lines:
    extension=gd
    extension=mysqli
    
    • Save and close the file.
  6. Restart the Apache Web Server:

    sudo systemctl restart httpd
    
  7. Open the Browser and Navigate to the PrestaShop Installation Page:

    • In your web browser, enter the URL: http://localhost/prestashop/.
    • The installation process will begin automatically.
    • Follow the on-screen instructions to complete the installation.
  8. Done! You have Successfully Installed PrestaShop on Manjaro.

Conclusion:

By following this tutorial, you have learned how to install PrestaShop on Manjaro in a few easy steps!

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!