How to install Prestashop online store in Linux
To install Prestashop online store in Linux
Prestashop is an open source e-Commerce shopping cart used by almost 1,30,000+ online stores. Installation of Prestashop is explained in this article.
Features
- Several country currency options.
- E-mail subscription
- Unlimited payment options.
- Create their own accounts.
- Supports SSL Encryption.
- SMS/Text-message option.
- Full featured WYSIWYG editor.
- products will be displayed in the homepage.
- Built-in zoom option.
- More categories and sub categories.
To install Prestashop
Create database for prestashop
\[root@linuxhelp1 ~\]# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with or g.
Your MariaDB connection id is 10
Server version: 5.5.47-MariaDB MariaDB Server
Copyright (c) 2000, 2015, Oracle, MariaDB Corporation Ab and others.
MariaDB \[(none)\]> create database prestadb
Query OK, 1 row affected (0.00 sec)
MariaDB \[(none)\]> use prestadb
Database changed
MariaDB \[prestadb\]> grant all on prestadb.\* to prestauser@192.168.5.112 identified by ' linuxc'
Query OK, 0 rows affected (0.00 sec)
MariaDB \[(none)\]> grant all on prestadb.\* to prestauser@localhost identified by ' linuxc'
Query OK, 0 rows affected (0.00 sec)
MariaDB \[(none)\]> flush privileges
Query OK, 0 rows affected (0.00 sec)
MariaDB \[(none)\]> exit
Bye
Open the apache default port &rsquo 80&rsquo .
\[root@linuxhelp1 ~\]# firewall-cmd --permanent --add-port=80/tcp
success
\[root@linuxhelp1 ~\]# firewall-cmd --permanent --add-port=80/udp
success
\[root@linuxhelp1 ~\]# firewall-cmd --reload
Success
Disable SELinux as shown below.
\[root@linuxhelp1 ~\]# vim /etc/sysconfig/selinux
# This file controls the state of SELinux on the system.
SELINUX= can take one of these three values:
enforcing - SELinux security policy is enforced.
permissive - SELinux prints warnings instead of enforcing.
disabled - No SELinux policy is loaded.
SELINUX=disabled
SELINUXTYPE= can take one of these two values:
targeted - Targeted processes are protected,
minimum - Modification of targeted policy. Only selected processes are protected.
mls - Multi Level Security protection.
SELINUXTYPE=targeted
Download the prestashop software from the following link,
[http://www.prestashop.com/en/download](http://www.prestashop.com/en/download)


Goto your download location and unzip the extarcted packages.
[root@linuxhelp1 ~]# cd Downloads/
[root@linuxhelp1 Downloads]# ls
prestashop_1.6.1.6.zip
Extract the downloaded zip file and move them to your apache root document folder
[root@linuxhelp1 Downloads]# unzip prestashop_1.6.1.6.zip
Archive: prestashop_1.6.1.6.zip
.
.
.
inflating: prestashop/CONTRIBUTING.md
inflating: prestashop/footer.php
inflating: prestashop/error500.html
inflating: Install_PrestaShop.html
\[root@linuxhelp1 Downloads\]# mv prestashop/ /var/www/html/
```
Setup permissions for prestashop.
```
\[root@linuxhelp1 Downloads\]# cd /var/www/html/prestashop/
\[root@linuxhelp1 prestashop\]# chmod 755 \*.\*
\[root@linuxhelp1 prestashop\]# chown -R apache:apache /var/www/html/prestashop/
\[root@linuxhelp1 prestashop\]# mv \* /var/www/html/
```
Open your web browser and navigate to [http://< ip\_address> /install/](http://< ip_address> /install/) Select your preferred language and Click Next.

Accept the License agreement and click Next.

Enter your Shop name, Shop category, Country, Logo of your shop, User account details and Administrative user mail id etc and click Next.

Enter the MySQL database name, database user and database password.


Now the Prestashop installation starts.


Go to web browser and navigate to [http://< IP\_address> /index.php](http://< IP_address> /index.php)

Enter the user credentials.

Now you can start shopping.

Comments ( 0 )
No comments available