We have two versions of PHP on our Linux CentOS6 machine, 5.3.3 and 5.6.7, and wanted to install PHP extensions, memcache and imagick, to 5.6.7.
Logged in as root, using yum, we installed both of these, but realised they were only usable in 5.3.3 and not in the latest version. This are the commands we used:
$ yum install ImageMagick ImageMagick-devel $ pecl install imagick $ echo "extension=imagick.so" > /etc/php.d/imagick.ini
We tried copying imagick.so and memcache.so from the old extension directory to 5.6.7's extension directory, but without any luck.
How do we install these extensions to our latest version, PHP 5.6.7? Or is there a way to resolve this without reinstalling anything?
To install PHP 5.6.7, I used the steps given in this gist: