Jump to content

Updateing-php-5.1.6 to 5.2.17on centos5.8

From TetraWiki
Revision as of 11:50, 26 November 2012 by Admin (talk | contribs) (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) ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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)

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