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:
- Manjaro installed on your computer
- Apache Web Server
- PHP version 7.1 or above
- MySQL or MariaDB Database
Steps:
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.
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/.
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/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';Configure PHP Settings for PrestaShop.
- Open
httpd-php.inifile 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.
- Open
Restart the Apache Web Server:
sudo systemctl restart httpdOpen 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.
- In your web browser, enter the URL:
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!