How to Install & Configure Prestashop On RHEL/Centos 6x
Q. What is Prestashop ?
Ans: PrestaShop is a free, open source e-commerce solution. It supports payment gateways such as DirecPayDirecPay,Google Checkout, Authorize.Net, Skrill, PayPal and PayPal Payments Pro via their respective APIs.
Step: 1. Install Apache Server & Dependency :
# yum -y install httpd httpd-devel zip unzip wget
Step: 2. Edit httpd.conf file :
# vi /etc/httpd/conf/httpd.conf
#ServerName www.example.com:80
Add this Line :
ServerName ip address of server:80
-- Save & Quit (:wq)
Step: 3. Download & Configure PrestaShop :
# cd /var/www/html
# wget https://prestashop.googlecode.com/files/prestashop_1.5.6.2.zip
# unzip prestashop_1.5.6.2.zip
# chmod -Rf 777 /var/www/html/prestashop
Step: 4. Edit the /etc/httpd/conf/httpd.conf File :
# vi /etc/httpd/conf/httpd.conf
Add those Lines :
<Directory /var/www/html/prestashop>
Options +Indexes +Multiviews
DirectoryIndex index.php index.html
AllowOverride All
Allow from all
</Directory>
-- Save & Quit (:wq)
Step: 5. Install MySQL Database Server :
# yum -y install mysql mysql-server mysql-devel
Step: 6. Start MySQL Service :
# service mysqld start
Step: 7. Changing MySQL Root Password :
# mysql_secure_installation
Press Enter --> Y --> Give the Root Password --> Enter --> n --> Enter --> n --> Enter --> n --> Enter.
Step: 8. Create Database for PrestaShop :
# mysql -u root -p
-- Give root Password.
Mysql> create database prestashop character set utf8;
Mysql> grant all privileges on prestashop.* to 'presta'@'localhost' identified by 'password';
Mysql> grant all privileges on prestashop.* to 'presta'@'%' identified by 'password';
Mysql> flush privileges;
Mysql> exit
Step: 9. Install PHP5 Scripting Language :
# yum -y install php php-mysql php-common php-gd php-mbstring php-mcrypt php-devel php-xml
Step: 10. Create a file named /var/www/html/info.php :
# vi /var/www/html/info.php
<?php
phpinfo();
?>
-- Save & Quit (:wq)
Step: 11. Restart Apache to load php :
# service httpd restart
# chkconfig httpd on
# service mysqld restart
# chkconfig mysqld on
Step: 12. Then point your browser to http://ip address/info.php :
Ex- http://192.168.72.140/info.php
Step: 13. Configure PrestaShop Server :
Go to http://192.168.72.140/prestashop
Select Language: English -> Next -> I Agree -> Next -> Shop Name: server1.kmi.com, Main activity: Select anything, Country: Select Country, First Name: Koushik, Last Name: Chatterjee, Email Address: your-email@domain.com, Shop Password: Password, Re-type to confirm: Password -> Next -> Database Server Add: localhost, DB Name: prestashop, DB Login: presta, DB Password: password -> Next.
# cd /var/www/html/prestashop
# rm -rf install
Thanks For Visiting on My Blog, For More Tutorials Keep Visiting My Blog
0 comments:
Post a Comment