PrestaShop on Centos 6.x

As once the centos server has been installed. (Server minimum).

the following components are needed:

  • Apache httpd server
  • PHP
  • MySQL

Let start:

    • Apache
yum install httpd
chkconfig httpd on
  • ¬†PHP

You will require to add the remi repository and install dependencies:

rpm -vi
rpm -vi
yum --enablerepo=epel install mcrypt libmcrypt mhash
yum --enablerepo=remi install php-mcrypt php php-common php-pdo php-cli php-mysql php-gd php-xml libtool-ltdl php-mbstring
    • Set the Owner for the Apache’s path:
chown -R apache.apache /var/www/html/
      • service httpd restart
service httpd restart
      • Installation of MySQL
yum --enablerepo=remi install mysql mysql-server
      • Start MySQL
service mysqld start
chkconfig mysqld on
    • Setup MySQL
/usr/bin/mysqladmin -u root password 'new-password'
    • Add iptables rule
vi /etc/sysconfig/iptables

Add the following rule for the http on port 80 / 443 for if Https

-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT

For the rest left to do, download the latest version of Prestashop; uncompress it to /var/www/html/
Then follow the instruction from : http://yourmachine/install/

Leave a Reply