centos_php5.5_upgrade
This is an old revision of the document!
PHP 5.5 on CentOS 6
http://stackoverflow.com/questions/21502656/upgrading-php-on-centos-6-5-final
Checking version:
php -v
Install webtatic repository:
rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
Note which php packages are installed:
rpm -qa|grep php | sort
Machine "baystate" had this:
# rpm -qa|grep php | sort php-5.3.3-46.el6_6.i686 php-cli-5.3.3-46.el6_6.i686 php-common-5.3.3-46.el6_6.i686 php-gd-5.3.3-46.el6_6.i686 php-mbstring-5.3.3-46.el6_6.i686 php-mcrypt-5.3.3-4.el6.i686 php-mysql-5.3.3-46.el6_6.i686 php-pdo-5.3.3-46.el6_6.i686 php-pear-1.9.4-4.el6.noarch php-pear-MDB2-2.5.0-0.9.b5.el6.noarch php-pear-MDB2-Driver-mysqli-1.5.0-0.8.b4.el6.noarch php-xml-5.3.3-46.el6_6.i686
Remove the following:
yum remove php-common
Output:
Loaded plugins: fastestmirror, refresh-packagekit, security Setting up Remove Process Resolving Dependencies --> Running transaction check ---> Package php-common.x86_64 0:5.3.3-46.el6_6 will be erased --> Processing Dependency: php(api) = 20090626 for package: php-mcrypt-5.3.3-4.el6.x86_64 --> Processing Dependency: php(zend-abi) = 20090626 for package: php-mcrypt-5.3.3-4.el6.x86_64 --> Processing Dependency: php-common(x86-64) = 5.3.3-46.el6_6 for package: php-cli-5.3.3-46.el6_6.x86_64 --> Processing Dependency: php-common(x86-64) = 5.3.3-46.el6_6 for package: php-mbstring-5.3.3-46.el6_6.x86_64 --> Processing Dependency: php-common(x86-64) = 5.3.3-46.el6_6 for package: php-gd-5.3.3-46.el6_6.x86_64 --> Processing Dependency: php-common(x86-64) = 5.3.3-46.el6_6 for package: php-5.3.3-46.el6_6.x86_64 --> Processing Dependency: php-common(x86-64) = 5.3.3-46.el6_6 for package: php-mysql-5.3.3-46.el6_6.x86_64 --> Processing Dependency: php-common(x86-64) = 5.3.3-46.el6_6 for package: php-xml-5.3.3-46.el6_6.x86_64 --> Processing Dependency: php-common(x86-64) = 5.3.3-46.el6_6 for package: php-pdo-5.3.3-46.el6_6.x86_64 --> Running transaction check ---> Package php.x86_64 0:5.3.3-46.el6_6 will be erased ---> Package php-cli.x86_64 0:5.3.3-46.el6_6 will be erased --> Processing Dependency: php-cli >= 5.1.0-1 for package: 1:php-pear-1.9.4-4.el6.noarch ---> Package php-gd.x86_64 0:5.3.3-46.el6_6 will be erased ---> Package php-mbstring.x86_64 0:5.3.3-46.el6_6 will be erased ---> Package php-mcrypt.x86_64 0:5.3.3-4.el6 will be erased ---> Package php-mysql.x86_64 0:5.3.3-46.el6_6 will be erased ---> Package php-pdo.x86_64 0:5.3.3-46.el6_6 will be erased ---> Package php-xml.x86_64 0:5.3.3-46.el6_6 will be erased --> Running transaction check ---> Package php-pear.noarch 1:1.9.4-4.el6 will be erased --> Finished Dependency Resolution Dependencies Resolved ======================================================================================================================================================================================= Package Arch Version Repository Size ======================================================================================================================================================================================= Removing: php-common x86_64 5.3.3-46.el6_6 @updates 2.9 M Removing for dependencies: php x86_64 5.3.3-46.el6_6 @updates 3.5 M php-cli x86_64 5.3.3-46.el6_6 @updates 6.2 M php-gd x86_64 5.3.3-46.el6_6 @updates 324 k php-mbstring x86_64 5.3.3-46.el6_6 @updates 2.1 M php-mcrypt x86_64 5.3.3-4.el6 @epel 46 k php-mysql x86_64 5.3.3-46.el6_6 @updates 216 k php-pdo x86_64 5.3.3-46.el6_6 @updates 168 k php-pear noarch 1:1.9.4-4.el6 @base 2.2 M php-xml x86_64 5.3.3-46.el6_6 @updates 307 k Transaction Summary ======================================================================================================================================================================================= Remove 10 Package(s) Installed size: 18 M Is this ok [y/N]: y Downloading Packages: Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Warning: RPMDB altered outside of yum. Erasing : php-mysql-5.3.3-46.el6_6.x86_64 1/10 Erasing : php-5.3.3-46.el6_6.x86_64 2/10 Erasing : 1:php-pear-1.9.4-4.el6.noarch 3/10 Erasing : php-cli-5.3.3-46.el6_6.x86_64 4/10 Erasing : php-pdo-5.3.3-46.el6_6.x86_64 5/10 Erasing : php-mbstring-5.3.3-46.el6_6.x86_64 6/10 Erasing : php-gd-5.3.3-46.el6_6.x86_64 7/10 Erasing : php-mcrypt-5.3.3-4.el6.x86_64 8/10 Erasing : php-xml-5.3.3-46.el6_6.x86_64 9/10 Erasing : php-common-5.3.3-46.el6_6.x86_64 10/10 warning: /etc/php.ini saved as /etc/php.ini.rpmsave Verifying : php-xml-5.3.3-46.el6_6.x86_64 1/10 Verifying : php-pdo-5.3.3-46.el6_6.x86_64 2/10 Verifying : php-cli-5.3.3-46.el6_6.x86_64 3/10 Verifying : php-mcrypt-5.3.3-4.el6.x86_64 4/10 Verifying : php-5.3.3-46.el6_6.x86_64 5/10 Verifying : php-gd-5.3.3-46.el6_6.x86_64 6/10 Verifying : php-common-5.3.3-46.el6_6.x86_64 7/10 Verifying : php-mbstring-5.3.3-46.el6_6.x86_64 8/10 Verifying : php-mysql-5.3.3-46.el6_6.x86_64 9/10 Verifying : 1:php-pear-1.9.4-4.el6.noarch 10/10 Removed: php-common.x86_64 0:5.3.3-46.el6_6 Dependency Removed: php.x86_64 0:5.3.3-46.el6_6 php-cli.x86_64 0:5.3.3-46.el6_6 php-gd.x86_64 0:5.3.3-46.el6_6 php-mbstring.x86_64 0:5.3.3-46.el6_6 php-mcrypt.x86_64 0:5.3.3-4.el6 php-mysql.x86_64 0:5.3.3-46.el6_6 php-pdo.x86_64 0:5.3.3-46.el6_6 php-pear.noarch 1:1.9.4-4.el6 php-xml.x86_64 0:5.3.3-46.el6_6 Complete!
Install these packages:
yum -y install php55w yum -y install php55w-gd yum -y install php55w-mbstring yum -y install php55w-mcrypt yum -y install php55w-mysql yum -y install php55w-pdo yum -y install php55w-pear yum -y install php55w-xml yum -y install php55w-pear-MDB2 yum -y install php55w-pear-MDB2-Driver-mysqli
Restart HTTPD service:
service httpd restart
centos_php5.5_upgrade.1449713401.txt.gz ยท Last modified: 2015/12/09 21:10 by juckins