In this tutorial, we will guide you on how to install PrestaShop on OpenSUSE Latest. PrestaShop is an open-source e-commerce solution that is available for free, so it's an excellent choice for small businesses and startups. PrestaShop provides a range of features necessary to start an online store, such as product management, order management, and customer management.
Before installing any software or application, it's necessary to update the local package repository to have the latest version of the system. To update the package repository, execute the following command:
sudo zypper update
PrestaShop is a web-based application that requires a web server, and for this, we will install Apache. Execute the following command in the terminal:
sudo zypper install apache2
After the installation completes, start and enable the Apache service with:
sudo systemctl start apache2.service
sudo systemctl enable apache2.service
For storage and retrieval of data, PrestaShop requires a database. We will install MariaDB that is compatible with MySQL, execute the following command:
sudo zypper install mariadb mariadb-client
Starting and enabling the MariaDB service using the following command:
sudo systemctl start mariadb.service
sudo systemctl enable mariadb.service
Afterward, execute the below command to secure the MariaDB installation:
sudo mysql_secure_installation
It will ask you to set root password, optionally remove anonymous users, restrict remote root access, and remove test database. Follow the instructions and secure your MariaDB installation.
PrestaShop requires PHP to work on a web server. We will install PHP version 7.x and its extensions required to run PrestaShop:
sudo zypper install php7 php7-mysql php7-xmlwriter php7-simplexml php7-xml php7-gd php7-mbstring php7-json php7-curl php7-zip
You can download the latest version of PrestaShop from https://www.prestashop.com/ or use the following command to download the tarball file in the terminal:
wget https://download.prestashop.com/download/releases/prestashop_1.7.7.2.zip
Extract the downloaded file using the following command:
unzip prestashop_1.7.7.2.zip -d /var/www/htdocs/
After extraction of the archive, the PrestaShop files will be in the /var/www/htdocs/prestashop folder. Rename it to your own store name.
mv /var/www/htdocs/prestashop /var/www/htdocs/myshopname
Now, we need to give enough permission to the /var/www/htdocs/myshopname directory to make sure the web server can access and write to it. Execute the following command:
sudo chgrp -Rf www /var/www/htdocs/myshopname
sudo chmod -Rf g+w /var/www/htdocs/myshopname
Open your browser and enter your web server IP address or hostname followed by the directory you set in the previous step; for example, http://
You will see the language selection page next, select your language and click the next button. Then, you will see the System Compatibility page; check if all the requirements are satisfied.
Now, the installation wizard will check all the requirements, and if they are all satisfied, you will proceed to the next page where you need to enter your store information.
Here you need to set your store information, administrative information, and most importantly, the database configuration. To configure the database, set the database hostname, username, password, and database name. You can use root as the username and set the password that you set earlier.
Once everything is set, click on the 'Test your database connection now!' button, and you should see a success message. If it is successful, click on the next button.
Now, install PrestaShop by clicking on the 'Install now!' button; it will take a few minutes to complete the installation process. Once installation finished, you will see the 'Installation complete!' message.
To ensure PrestaShop runs smoothly, you need to delete the 'install' directory, execute the below command to remove:
sudo rm -rf /var/www/htdocs/myshopname/install
Restart the Apache and MariaDB service and visit your site in a browser using the URL http://
sudo systemctl restart apache2.service mariadb.service
In conclusion, you have successfully installed PrestaShop on OpenSUSE Latest. You can now start customizing and configuring your online store. Happy Selling!
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!