GB Advisors, Inc.

PR: +1 (787) 708-6734
US: +1 (786) 272-2370

Tech Blog‎ > ‎

Install Opencart on CentOS 6

posted Nov 25, 2011 10:32 PM by Alexander Guedez   [ updated Dec 1, 2011 9:38 AM ]

Update the operating system before:

# yum update

Install packeges required to run your OpenCart:

# yum install httpd mysql mysql-server php php-mysql php-gd php-curl php-pecl-zip system-config-firewall* unzip

Configure Mysql for Opencart:

# service mysqld start

# /usr/bin/mysqladmin -u root password 'new-password'
# /usr/bin/mysqladmin -u root -h localhost password 'new-password'

# /usr/bin/mysql_secure_installation

# chkconfig mysql on

Create Opencart Database:

# mysql -u root -p 
# mysql> create database opencartdb;
# mysql> grant all on opencartdb.* to 'opencart' identified by 'p@$$w0rD';
# mysql> flush privileges;

Configure Apache Webserver:

# service httpd start
# chkconfig httpd on

Download and install Opencart:

# cd /var/www/html
# wget http://opencart.googlecode.com/files/opencart_v1.5.1.3.1.zip
# unzip opencart_v1.5.1.3.1.zip
# mv upload/ store/

Configure Opencart based on the previous configurations

http://localhost/store/

Remove the Installation directory:

# rm -Rf /var/www/html/store/install/

Enjoy your new Online Store!!