Installing PHP using the Yum install directly in CentOS is a relatively low version, if you need a higher version, see the following:
Step 1:installing Remi Repository
# # Install Remi & Epel Repository on Rhel/centos 6.4-6.0-32 Bit # # RPM-UVH http:/ /DOWNLOAD.FEDORAPROJECT.ORG/PUB/EPEL/6/I386/EPEL-RELEASE-6-8.NOARCH.RPMRPM-UVH http://rpms.famillecollet.com/ enterprise/remi-release-6.rpm # # Install Remi & Epel Repository on Rhel/centos 6.4-6.0-64 Bit # # rpm -UVH HTTP://DOWNLOAD.FEDORAPROJECT.ORG/PUB/EPEL/6/X86_64/EPEL-RELEASE-6-8.NOARCH.RPMRPM-UVH/HTTP rpms.famillecollet.com/enterprise/remi-release-6.rpm # # Install Remi Repository on Rhel/centos 5.9-5.0-32 Bit # # RPM-UVH HTTP://DL.FEDORAPROJECT.ORG/PUB/EPEL/5/I386/EPEL-RELEASE-5-4.NOARCH.RPMRPM-UVH/http rpms.famillecollet.com/enterprise/remi-release-5.rpm # # Install Remi Repository on Rhel/centos 5.9-5.0-64 Bit # # RPM-UVH HTTP://DL.FEDORAPROJECT.ORG/PUB/EPEL/5/X86_64/EPEL-RELEASE-5-4.NOARCH.RPMRPM-UVH/http rpms.famillecollet.com/enterprise/remi-release-5.rpm
Step 2:installing Apache, MySQL 5.5.32 & PHP 5.5.0
# # Installing on Rhel/centos 5-6# # yum--enablerepo=remi,remi-test install httpd mysql mysql-server php php-com Mon
Step 3:installing PHP 5.5.0 Modules
# # Installing on Rhel/centos 5-6 # #
Php-pear Php-pdo
Step 4:starting/stopping Apache & MySQL 5.5.32
# # Enable Apache and MySQL on Run-levels # # Chkconfig--levels 235 httpd on# chkconfig--levels 235 mysqld On
## Apache Commands # # #/etc/init.d/httpd start#/etc/init.d/httpd stop#/etc/init.d/httpd Status
# # MySQL Comman DS # # #/etc/init.d/mysqld start#/etc/init.d/mysqld stop#/etc/init.d/mysqld Status
Well, almost, configuration test, such as online a lot of information!!!
This article leads to install Apache, MySQL 5.5.32 & PHP 5.5.0 on Rhel/centos 6.4/5.9 & Fedora 19-12
http://www.bkjia.com/PHPjc/440154.html www.bkjia.com true http://www.bkjia.com/PHPjc/440154.html techarticle installing PHP using the Yum install directly in CentOS is relatively low, if you need a higher version, see below: Step 1:installing Remi Repository # # Install Remi Epel Repository O .....