Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


centos_php5.5_upgrade

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
centos_php5.5_upgrade [2015/12/09 19:02] – created juckinscentos_php5.5_upgrade [2016/02/05 22:08] juckins
Line 3: Line 3:
 http://stackoverflow.com/questions/21502656/upgrading-php-on-centos-6-5-final http://stackoverflow.com/questions/21502656/upgrading-php-on-centos-6-5-final
  
 +Checking version:
 <code> <code>
-php --version+php -
 +</code>
  
 +Install webtatic repository:
 +<code>
 rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
 +</code>
  
 +Note which php packages are installed:
 +<code>
 +rpm -qa|grep php | sort
 +</code>
 +
 +Machine "baystate" had this:
 +<code>
 +# 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
 +</code>
 +
 +Remove the following:
 +<code>
 yum remove php-common yum remove php-common
 +</code>
 +
 +Output:
 +<code>
 Loaded plugins: fastestmirror, refresh-packagekit, security Loaded plugins: fastestmirror, refresh-packagekit, security
 Setting up Remove Process Setting up Remove Process
Line 60: Line 93:
  
 Installed size: 18 M Installed size: 18 M
-Is this ok [y/N]: +Is this ok [y/N]: 
 Downloading Packages: Downloading Packages:
 Running rpm_check_debug Running rpm_check_debug
Line 97: Line 131:
  
 Complete! Complete!
 +</code>
  
-yum -y install php55w +Install these packages: 
-yum -y install php55w-gd +  * php55w  
-yum -y install php55w-mbstring +  php55w-gd  
-yum -y install php55w-mcrypt +  php55w-mbstring  
-yum -y install php55w-myswl +  php55w-mcrypt  
-yum -y install php55w-mysql +  * php55w-mysql  
-yum -y install php55w-pdo +  * php55w-pdo  
-yum -y install php55w-pear +  * php55w-pear 
-yum -y install php55w-xml+  * php55w-xml 
 +<code> 
 +#!/bin/bash 
 + 
 +yum -y install php55w php55w-gd php55w-mbstring php55w-mcrypt php55w-mysql php55w-pdo php55w-pear php55w-xml
 </code> </code>
 +
 +Restart HTTPD service:
 +<code>
 +service httpd restart
 +</code>
 +