Very silent, CentOS actually PHP version only 5.1.6, many open-source CMS cannot be installed.
To view the PHP version command:
#php-V
This command is to remove the dirty
#yum Remove PHP
Because you can use this command later.
#php-V
You will still see the version information .....
Must force delete
#rpm-qa|grep PHP
Prompt as follows
#php-pdo-5.1.6-27.el5_5.3
#php-mysql-5.1.6-27.el5_5.3
#php-xml-5.1.6-27.el5_5.3
#php-cli-5.1.6-27.el5_5.3
#php-common-5.1.6-27.el5_5.3
#php-gd-5.1.6-27.el5_5.3
Note Uninstall to uninstall the no dependency first
PDO is a dependency of MySQL; Common is a dependency of GD;
Example: # rpm-e php-pdo-5.1.6-27.el5_5.3
error:failed dependencies:
Php-pdo is needed by (installed) php-mysql-5.1.6-27.el5_5.3.i386
So the correct unloading sequence is:
# RPM-E php-mysql-5.1.6-27.el5_5.3
# RPM-E php-pdo-5.1.6-27.el5_5.3
# RPM-E php-xml-5.1.6-27.el5_5.3
# RPM-E php-cli-5.1.6-27.el5_5.3
# RPM-E php-gd-5.1.6-27.el5_5.3
# RPM-E php-common-5.1.6-27.el5_5.3
Then use # Php-v
View version information no longer prompted
Install the latest PHP
wget Http://cn.php.net/get/php-5.3.6.tar.gz/from/this/mirror
Tar xzvf php-5.3.6.tar.gz
CD php-5.3.6
./configure--prefix=/usr/local/php
#make && make Install
#这个过程比较漫长需要耐心等待 Don't worry.
How does CentOS Force uninstall PHP and Custom install PHP