S U N U C U Ç Ö Z Ü M L E R İ

Contact Info

+90 (850) 885 0656

[email protected]

cPanel EasyApache4 Imagemagick Ve imagick Yüklemek
Category
Linux
Posted on
Eylül 9, 2022

cPanel EasyApache4 Imagemagick Ve imagick Yüklemek

Merhabalar,
Bu makalemizde EasyApache4 cPanel güncel sürümlerinde “Imagemagick ve imagick” eklentisini birlikte yükleyip aktif edeceğiz.

1- PHP IMAGEMAGIC Yüklemek

yum -y install ImageMagick-devel ImageMagick-c++-devel ImageMagick-perl

2- PHP sürüm 5.4, 5.5, 5.6, 7.0 ve 7.1 için imagemagick PHP uzantıları yüklemek

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. imagemagick’in kurulu olduğundan emin olmak için test edelim:

/usr/bin/convert --version

4. PHP uzantılarının yüklü olduğundan emin olmak için test edin:

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

Örnek çıktı aşağıdaki gibi olacaktır.

PHP 54
imagick
PHP 55
imagick
PHP 56
imagick
PHP 70
imagick
PHP 71
imagick
Share this Post