Install PHP 5.5 on Centos 6.5 or RHEL 5.10 via command line

Installing PHP 5.5 is fast, and far better in terms of security issues and over all memory usage compaired to the stock versions of PHP.

 

 

While there are many reasons to install PHP 5.5 including security, optimization, and overall coolness of being able to use the try {} and finally {} functions, being technically inept should not be it.

PHP

 

 

As root issue the following command for CentOS 6.5 and the 6.X Series

 

rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm

 

For RHEL 5.10 and the Centos / RHEL 5.X series

 

rpm -Uvh http://mirror.webtatic.com/yum/el5/latest.rpm

 

Next issue the following commands
yum install yum-plugin-replace

yum replace php-common --replace-with=php55w-common

 

Now restart Apache for the changes to take effect

/etc/init.d/httpd restart

Leave a Comment

Your email address will not be published.

Start typing and press Enter to search