Updateing-php-5.1.6 to 5.2.17on centos5.8: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
[[Linux- | [[category:Linux-General]] | ||
Latest revision as of 11:56, 26 November 2012
Referace URL
http://en.ispdoc.com/index.php/Updating_PHP_in_CentOS_Linux
Updating PHP 5.1.6 to 5.2.x
Method 1: Atomic repository (recommended)
The most convenient means is to use the Atomic repository. CentOS guru recommend that you use it instead of CentOS-Testing due to unstable test software.
As of 08.09.2011 in the PHP 5.2.17. repository
Connect the repository:
wget -q -O - http://www.atomicorp.com/installers/atomic.sh | sh
Disable PHP 5.3 that is installed into the repository by default
exclude = php*5.3*
into [atomic] in the /etc/yum.repos.d/atomic.repo file
Update PHP
yum update php
Update the mcrypt package as well
yum update php-mcrypt
Once completed successfully, check PHP and its version:
php -v php -m
Restart Apache
/etc/init.d/httpd restart