Updateing-php-5.1.6 to 5.2.17on centos5.8: Difference between revisions
Appearance
Created page with "Linux-Genral '''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) ..." |
No edit summary |
||
| Line 6: | Line 6: | ||
http://en.ispdoc.com/index.php/Updating_PHP_in_CentOS_Linux | http://en.ispdoc.com/index.php/Updating_PHP_in_CentOS_Linux | ||
Updating PHP 5.1.6 to 5.2.x | '''Updating PHP 5.1.6 to 5.2.x''' | ||
Method 1: Atomic repository (recommended) | Method 1: Atomic repository (recommended) | ||
Revision as of 11:51, 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