Step 1

rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm

Step 2. Install LAMP (Apache, PHP and MySQL) on CentOS 6.

yum update yum intsall httpd yum install –enablerepo=webtatic-testing php56w php56w-opcache yum install –enablerepo=webtatic-testing mysql55w mysql55w-server yum install –enablerepo=webtatic-testing php56w-xml yum install –enablerepo=webtatic-testing php56w-mcrypt yum install –enablerepo=webtatic-testing php56w-gd yum install –enablerepo=webtatic-testing php56w-mysql Start LAMP service, enable to start on boot: service httpd start service mysqld start

Step 3. Configure PHP for Magento.

vi /etc/php.ini

Search for the line ‘memory_limit‘ in the file:

memory_limit = 128M ### and change the value to 512 ### memory_limit = 512M

Step 4. Configuring MySQL for Magento.

mysql_secure_installation

mysql -u root -p

mysql> create database magentodb; mysql> GRANT ALL PRIVILEGES ON magentodb . * TO magento@’localhost’ IDENTIFIED BY ‘PASSWORD’ WITH GRANT OPTION; mysql> flush privileges;

Step 5. Install Magento.

cd /var/www/html/ wget http://www.magentocommerce.com/downloads/assets/1.9.1.0/tar -xvzf magento-1.9.1.0.tar.gz tar -xvzf magento-1.9.1.0.tar.gz rm magento-1.9.1.0.tar.gz

cd /var/www/html/ chmod -R o+w app/etc/ chmod -R o+w var/ chmod -R o+w media/

Step 6. Accessing Magento.

http://yourdomain.com/ or http://server-ip  port 80