Under normal circumstances, it is strongly recommended to use the Yum configuration installation lamp environment under CENTOS6, some brothers also like to use the installation method of compiling, personally think if not to the server to do custom, with yum install stable simple, why go to Download&make&make Install it.
Configure Rpmforge and Epel sources for CentOS. The official CentOS source is also sufficient, but some extensions like PHP, such as Php-mcrypt, are not in the official source.
The Rpmforge source can be downloaded and installed in http://pkgs.repoforge.org/rpmforge-release/, named rpmforge-release-*.i686.rpm or rpmforge-release-*. X86_64.RPM, find the latest version
Epel source can be found in the http://download.fedoraproject.org/pub/epel/6/, 32 system in the I386 folder, 64 bits in the x86_64 folder, named epel-release-6-*. NOARCH.RPM, find the latest version
Here is an example of a 32-bit system,
#如果提示The requested URL returned error:404, please change yourself to the latest version
RPM-IVH http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm
RPM-IVH http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm
Operation Combat:
===========================================
Please follow the steps below:
Toggle the default CentOS source to 163 mirroring
Http://mirrors.163.com/.help/centos.html
Follow the instructions
Then add the Yum source and use the following command
32-bit RPM-IVH http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.i686.rpm
RPM-IVH http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
64-bit RPM-IVH http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
RPM-IVH http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
CentOS RedHat YUM Source Extension Supplement (32-bit, 64-bit all)