Under normal circumstances is strongly recommended YUM configuration installed LAMP environment CentOS6 below, some of the brothers also like to use the compiler installation method, personally I feel that if not for the server to do customization, installation yum stable simple, why should I download & make & make install it.
Configure rpmforge and epel source centos. centos official source in fact is good enough, but some extensions like php-mcrypt php as the official source and no.
rpmforge sources can download and install the http://pkgs.repoforge.org/rpmforge-release/ named rpmforge- release - * i686.rpm or rpmforge-release -.. * x86_64.rpm, find the latest version
epel http://download.Fedoraproject.org/pub/epel/6/ source can be found in the system 32 folder in the i386, x86_64 64 in a folder named epel-release-6- *. noarch.rpm, find the latest version
Here is an example of a 32-bit system,
# If you are prompted The requested URL returned error: 404, please replace the latest version of its own
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
I press the following operations:
Switching default centos source 163 to the mirror (This step is not necessary step)
Follow the prompts
Then supplement yum source, use the following command
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
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