How to install Magento on Centos 6

Follow the web installation procedure, and if you run into the following errors you'll have to install required php extensions for your Linux version. For Centos 6, here is the steps you can follow to install php-dom and php-mcrypt.

PHP extension "dom" must be loaded.

# yum install php-xml

PHP extension "mcrypt" must be loaded.

Download the latest epel release from the following URL for the version of Linux you're running.
http://fedoraproject.org/wiki/EPEL
# rpm -ivh epel-release-6-*
warning: epel-release-6-7.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
Preparing...                ########################################### [100%]
   1:epel-release           ########################################### [100%]
# yum install php-mcrypt
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

If you're getting above error, you may want to edit /etc/yum.repos.d/epel.repo and change the mirrorlist link from https to http.

Restart apache and install php-mcrypt again.

# service httpd restart
# yum install php-mcrypt
Tags: 

Comments

Useful information for beginner.

By Chetaru Web Lin... (not verified)

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.