How to install Prestashop 1.7.2.4 on OpenSUSE leap 42.3
To install Prestashop 1.7.2.4 on OpenSUSE leap 42.3
PrestaShop is an open-source e-commerce solution which allows you to maintain your own online shop. It is written in PHP programming language with support for the MySQL database management system. It is simple to install PrestaShop application and in this tutorial, you learn about the method to install Prestashop on OpenSUSE Leap 42.3
Requirements
LAMP Stack
-Apache
-Mariadb
-php7
zypper in php php-mysql php-gd php-mbstring php-common php-fileinfo
Installing Prestashop
If you want to download the latest stable version of Prestashop, make sure you use the wget command along with its download link as follows.
linuxhelp:~ # wget https://download.prestashop.com/download/releases/prestashop_1.7.2.4.zip
--2017-11-14 10:11:19-- https://download.prestashop.com/download/releases/prestashop_1.7.2.4.zip
Resolving download.prestashop.com (download.prestashop.com)... 23.66.247.63
Connecting to download.prestashop.com (download.prestashop.com)|23.66.247.63|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 59625556 (57M) [application/zip]
Saving to: ‘ prestashop_1.7.2.4.zip’
100%[=========================================================================================================================================================================> ] 59,625,556 718KB/s in 74s
2017-11-14 10:12:34 (786 KB/s) - ‘ prestashop_1.7.2.4.zip’ saved [59625556/59625556]
Once it is downloaded, you shall extract the package by running the following command.
linuxhelp:~ # unzip prestashop_1.7.2.4.zip -d /srv/www/htdocs/
Archive: prestashop_1.7.2.4.zip
inflating: /srv/www/htdocs/index.php
inflating: /srv/www/htdocs/Install_PrestaShop.html
inflating: /srv/www/htdocs/prestashop.zip
Later, you need to go to your Apache document root. Run the following command for the same purpose.
linuxhelp:~ # cd /srv/www/htdocs/
linuxhelp:/srv/www/htdocs # ls -l
total 63756
-rw-rw-rw- 1 root root 308 Apr 4 2017 Install_PrestaShop.html
drwxrwxr-x 2 wwwrun www 4096 Oct 9 23:15 gif
-rw-rw-rw- 1 root root 641728 Jan 24 2017 index.php
-rwxrwxr-x 1 wwwrun www 2356 Mar 18 2017 info2html.css
Provide appropriate owner permission and file execution permission with the help of the following commands.
linuxhelp:/srv/www/htdocs # chown -R wwwrun:www /srv/www/htdocs/
linuxhelp:/srv/www/htdocs # chmod -R 775 /srv/www/htdocs/
Now, you need to configure the Apache VirtualHost. For that, you need to open the .conf file with the help of the following command.
linuxhelp:/srv/www/htdocs # vim /etc/apache2/conf.d/presta.conf
Add the following lines to it.
< VirtualHost *:80> DocumentRoot " /srv/www/htdocs" ServerName www.linuxhelp1.com < Directory " /srv/www/htdocs/" > DirectoryIndex index.php Options FollowSymLinks AllowOverride All Require all granted < /Directory> < /VirtualHost>
Once the configuration is done, you shall enable your Apache rewrite mode as follows.
linuxhelp:/srv/www/htdocs # vim /etc/sysconfig/apache2
APACHE_MODULES=" actions alias auth_basic authn_file authz_host authz_groupfile authz_core authz_user autoindex cgi dir env expires include log_config mime negotiation setenvif ssl socache_shmcb userdir reqtimeout authn_core php7 rewrite"
Finally. restart your apache service with the help of the following command.
linuxhelp:/srv/www/htdocs # systemctl restart apache
Also, make sure you configure your firewall with the help of the following command.
linuxhelp:/srv/www/htdocs # vim /etc/sysconfig/SuSEfirewall2
FW_CONFIGURATIONS_EXT=" apache"
Let us now proceed with the installation process via GUI. So, switch to the browser and type http://yourdomain. The installation wizzard for the PrestaShop application appears on your screen. Choose the language and proceed with the installation process.
Click on the license agreement check box and click on the Next button.
The system compatability check takes place in the next page.
Enter all the information about your account.
And click the Next button.
The installation is taking place. Let us wait for some time.
The installation has been completed. A message to delete the install folder is displayed on the screen.
So, in order to remove the installation folder, you need to run the following command.
inuxhelp:/srv/www/htdocs # rm -rf install
With this, the installation of PrestaShop comes to an end.