Php5.3 has heard of a bug. Therefore, you can upgrade php5.3 to php5.3. the specific steps are as follows: the php version before my previous version is: [root @ localhost ~] # Rpm-qa | grepphp * php-5.3.3-46.el6_6.i686php-pear-1.9.4-4.el6.noarchphp-odbc-5.3.3-
Php5.3 has heard of a bug. Therefore, you can upgrade php5.3 to version 5.4.
Procedure:
Below is my previous version
Php versions earlier:
[Root @ localhost ~] # Rpm-qa | grep php *
Php-5.3.3-46.el6_6.i686
Php-pear-1.9.4-4.el6.noarch
Php-odbc-5.3.3-46.el6_6.i686
Php-xml-5.3.3-46.el6_6.i686
Php-cli-5.3.3-46.el6_6.i686
Php-pdo-5.3.3-46.el6_6.i686
Php-gd-5.3.3-46.el6_6.i686
Php-mysql-5.3.3-46.el6_6.i686
Php-common-5.3.3-46.el6_6.i686
----------------------------------
Stop httpd service
Service httpd stop
Then yum remove php *
Remove php-related.
Then modify the source
If you think your bandwidth is high but the download speed is not fast, update the domestic source
Usually NetEase 163 source
Modify yum source NetEase 163 source
1. cd/etc/yum. repos. d
2. mv CentOS-Base.repo CentOS-Base.repo.backup // back up
3. wget http://mirrors.163.com/.help/CentOS6-Base-163.repo // download source
4. mv CentOS6-Base-163.repo CentOS-Base.repo // move and rename
5. yum clean all // clear all cache ..
6 yum update // update ..
OK
Next ..
Install the Webtatic EL6 YUM source
Rpm-Uvh http://repo.webtatic.com/yum/el6/latest.rpm
Install php5.4
Yum install php54w
Three packages are available after installation.
Check the version.
Php-v
Then install common tools ..
Yum install php54w-pear
Yum install php54w-odbc
Yum install php54w-xml
Yum install php54w-pdo
Yum install php54-gd
Yum install php54-mysql
..
OK
View
[Root @ localhost ~] # Rpm-qa | grep php *
Php54w-5.4.44-1.w6.i386
Php54w-odbc-5.4.44-1.w6.i386
Php54w-cli-5.4.44-1.w6.i386
Php54w-pdo-5.4.44-1.w6.i386
Php54w-pear-1.9.4-7.w6.noarch
Php54w-xml-5.4.44-1.w6.i386
Php54w-gd-5.4.44-1.w6.i386
Php54w-common-5.4.44-1.w6.i386
Php54w-mysql-5.4.44-1.w6.i386
Test a webpage by yourself.
Phpinfo ();
?>
Save as: test. php
Move this file
Mv test. php/var/www/html/test. php
Enter 127.0.0.1/test. php in the browser.
The test is successful ..