Friday, June 20, 2014

Install Magento in Centos 6

This will be simple guide for installing Magento in Centos 6

1. Install needed service
before that, add Epel repo first as we needed some package from there
# rpm -ivh http://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
then now proceed with the installation 
# yum install httpd mysql mysql-server php php-xml php-mcrypt mcrypt gd php-gd php-mysql

then setup your mysql server accordingly 
you need to create a database and user

for reference on how to setup mysql, please refer to 

2. get the latest Magento and extract it at your web folder

try get the latest version from Magento

# wget http://www.magentocommerce.com/downloads/assets/1.9.0.1/magento-1.9.0.1.tar.gz
# tar-zxvf magento-1.9.0.1.tar.gz

3. start up your httpd and mysql services. Then at your browser go to <your ip>/magento and follow the wizard guide

during the wizard installation, you will reach a pages where it told you unable to write file into a list of dir.
just change those Dir to use 777 and file use 666 permission



Common error message and solution
PHP extension "dom" must be loaded. -> install php-xml
PHP extension "mcrypt" must be loaded. -> install php-mcrypt + mcrypt
PHP extension "gd" must be loaded. -> install php-gd
php extensions pdo_mysql must be loaded -> install php-mysql

1 comment:

  1. I do agree with all the ideas you have presented in your post. They’re really convincing and will certainly work. Still, the posts are very short for newbies. Could you please extend them a little from next time?..Keep this great work
    magento development company in bangalore 

    ReplyDelete