PHP 5.6 CentOS 6

One of the bad things with the default repos on CentOS is that the PHP releases are really dated.
I recently needed a later version of PHP on one of my servers so did some digging to find the following webtatic repo for all the latest PHP and module releases.

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

That will install the yum repository for you so you can do the magical yum installs
The usual and basic modules for PHP 5.6 are as follows;

yum install php56w php56w-mysql php56w-xml

A search for the repo for all the latest and greatest it has to offer will show something like the following;
As you can see at the time of writing this theres everything from php5.4 up to php7.
The good old php 5.3 is still available using the usual php- packages

php54w-pecl-apcu.x86_64 : APCu - APC User Cache
php54w-pecl-apcu-devel.x86_64 : APCu developer files (header)
php54w-pecl-geoip.x86_64 : Extension to map IP addresses to geographic places
php54w-pecl-igbinary-devel.x86_64 : Igbinary developer files (header)
php54w-pecl-imagick.x86_64 : Provides a wrapper to the ImageMagick library
php54w-pecl-imagick-devel.x86_64 : Imagick developer files (header)
php54w-pecl-memcache.x86_64 : Extension to work with the Memcached caching daemon
php54w-pecl-memcached.x86_64 : Extension to work with the Memcached caching daemon
php54w-pecl-redis.x86_64 : Extension for communicating with the Redis key-value store
php54w-pecl-zendopcache.x86_64 : PECL package for Zend OPcache
php55w-opcache.x86_64 : An opcode cache Zend extension
php55w-pecl-apcu.x86_64 : APCu - APC User Cache
php55w-pecl-apcu-devel.x86_64 : APCu developer files (header)
php55w-pecl-geoip.x86_64 : Extension to map IP addresses to geographic places
php55w-pecl-igbinary-devel.x86_64 : Igbinary developer files (header)
php55w-pecl-imagick.x86_64 : Provides a wrapper to the ImageMagick library
php55w-pecl-imagick-devel.x86_64 : Imagick developer files (header)
php55w-pecl-memcache.x86_64 : Extension to work with the Memcached caching daemon
php55w-pecl-memcached.x86_64 : Extension to work with the Memcached caching daemon
php55w-pecl-redis.x86_64 : Extension for communicating with the Redis key-value store
php56w-opcache.x86_64 : An opcode cache Zend extension
php56w-pecl-apcu.x86_64 : APCu - APC User Cache
php56w-pecl-apcu-devel.x86_64 : APCu developer files (header)
php56w-pecl-geoip.x86_64 : Extension to map IP addresses to geographic places
php56w-pecl-igbinary-devel.x86_64 : Igbinary developer files (header)
php56w-pecl-imagick.x86_64 : Provides a wrapper to the ImageMagick library
php56w-pecl-imagick-devel.x86_64 : Imagick developer files (header)
php56w-pecl-memcache.x86_64 : Extension to work with the Memcached caching daemon
php56w-pecl-memcached.x86_64 : Extension to work with the Memcached caching daemon
php56w-pecl-redis.x86_64 : Extension for communicating with the Redis key-value store
php70w-opcache.x86_64 : An opcode cache Zend extension
php70w-pecl-apcu.x86_64 : APCu - APC User Cache
php70w-pecl-apcu-devel.x86_64 : APCu developer files (header)
php70w-pecl-imagick.x86_64 : Provides a wrapper to the ImageMagick library
php70w-pecl-imagick-devel.x86_64 : Imagick developer files (header)

Leave a Reply

Your email address will not be published. Required fields are marked *