I'm running a server on centos 6.8, and running a magento 2 site on this. The default version of php is 5.3.3, however the site itself is running on 5.6.5.
The latest upgrade to magento2 requires the imagick extension installed and included in php.ini, so i attempted
sudo pecl install imagick which returns requires 5.4.0 and greater.
Is there a way to run this command and specify what version of php I wish to use?