Instalando ImageMagick e Suas Extensões PHP
Instalando ImageMagick e Suas Extensões PHP, cPanel EasyApache 4 Installing Imagemagick and imagick PHP extension

Para instalar o ImageMagick e suas extensões PHP em um servidor cPanel, siga os passos abaixo:
1. Instalando o ImageMagick
Execute o seguinte comando no SSH:
yum -y install ImageMagick-devel ImageMagick-c++-devel ImageMagick-perl
2. Instalando as extensões PHP do ImageMagick para as versões 5.4, 5.5, 5.6, 7.0 e 7.1
Execute o seguinte script no SSH:
for phpver in $(ls -1 /opt/cpanel/ |grep ea-php | sed 's/ea-php//g') ; do
printf "\autodetect" | /opt/cpanel/ea-php$phpver/root/usr/bin/pecl install imagick
echo 'extension=imagick.so' >> /opt/cpanel/ea-php$phpver/root/etc/php.d/imagick.ini
done
/scripts/restartsrv_httpd
/scripts/restartsrv_apache_php_fpm
3. Testando a instalação do ImageMagick
Execute o seguinte comando no SSH para verificar a versão instalada do ImageMagick:
/usr/bin/convert --version
4. Testando o carregamento das extensões PHP
Execute o seguinte script no SSH para verificar se as extensões PHP do ImageMagick foram carregadas corretamente:
for phpver in $(ls -1 /opt/cpanel/ |grep ea-php | sed 's/ea-php//g') ; do
echo "PHP $phpver" ; /opt/cpanel/ea-php$phpver/root/usr/bin/php -m |grep imagick
done
PHP 54
imagick
PHP 55
imagick
PHP 56
imagick
PHP 70
imagick
PHP 71
imagick
Qual é a sua reação?






