How to upgrade the LNMP 0.5 inside the php5.2.14 to PHP 5.3.3???
How to upgrade the LNMP 0.5 inside the php5.2.14 to PHP 5.3.3???
~~~~~~~~~~~~~~~
Note: Do not Baidu Google found the tutorial sent to the upgrade can not:::
The PHP version of CentOS5.3 defaults to 5.1.6, and then there is a vulnerability in PHP before 5.2.9, but Yum update is not available in many places on the Web at this time php* Upgrade to 5.2.9, the more common is to upgrade to 5.2.6 version, after searching abroad data, now finally found a way to upgrade the CentOS PHP to 5.2.9.
Note that this method can only be upgraded on the official PHP version, if you use the online upgrade to 5.2. Version 6 upgrade method has been upgraded, you will not be able to use this method to upgrade PHP.
Run the following command:
wget http://download.fedora.redhat.co ... ease-5-3.noarch.rpm
wget http://rpms.famillecollet.com/en ... el5.remi.noarch.rpm
RPM-UVH remi-release-5*.rpm epel-release-5*.rpm
Then edit/etc/yum.repos.d/remi.repo
#vi/etc/yum.repos.d/remi.repo
Add a line at the end of this file:
Priority=1
Save exit.
/etc/yum.repos.d/epel.repo and/etc/yum.repos.d/epel-testing.repo These two files are also edited according to the above Method!
Use the following command to upgrade, but after testing, if the individual upgrade PHP will fail to prompt, only unicom MySQL upgrade together, so we must execute the following command to upgrade PHP to 5.2. Version 9:
Yum–-enablerepo=remi Update php* mysql*
PS: This way, PHP is upgraded to 5.3.
Method Two-------------------------------------------
Or go to http://oss.oracle.com/.
Next to php5.2 RPM package
Method Three-------------------------------------------
Vim/etc/yum.repos.d/utterramblings.repo
Input
[Utterramblings]
Name=jason ' s utter ramblings Repo
baseurl=http://www.jasonlitka.com/media/el$releasever/$basearch/
Enabled=1
Gpgcheck=1
Gpgkey=http://www.jasonlitka.com/media/rpm-gpg-key-jlitka
Final installation
Yum Install httpd PHP
And now I'm using it this way.
php-5.2.11
httpd-2.2.14