السي بانال CPanel تثبيت install ImageMagick
Install Imagick on cPanel/WHM Server
حل مشكلة module 'imagick' already loaded in unknown on line 0

imagick – popen error remove “popen” from disable_functions
Let see how to install ImageMagick on CentOS 7 Cpanel server easily.
1st you have to remove “popen” from disable_functions in php.ini, otherwise, you will get this error

disable_functions let’s get started with imagick
You can use WHM to do the installation with the following steps:
1. Login to WHM as the root user
2. Navigate to: Home »Software »Module Installers
3. Click on the Manage link to the right of “PHP Pecl”
4. Select the version of PHP from the drop-down and click Apply
5. Under “Install a PHP Pecl” enter “imagick” (without the quotes)
6. Click “Install Now”

imagick-install end up with
Run the following command:
كود:
[[email protected] ~]# echo 'extension=imagick.so' > /opt/cpanel/ea-php73/root/etc/php.d/imagick.ini
Next Restart apache and php-fpm service
now you are done
--------------------------------------------------------------------
You can also install the extension from WHM. Navigate to
Home - Software - Module Installers, then click on the
Manage button next to
PHP Pecl.

In the next screen, select the required PHP version, then click
Apply.

You can now enter “imagick” in the
Install a PHP Pecl field, and click the
Install Now button.

The extension should be compiled quickly, look at the bottom of the log on the screen for the confirmation that it was built successfully.
1) On WHM/cpanel
Home »Software »Module Installers
2) PHP Pecl
3) i Selected PHP version (7.3) and apply
4) On the “install a PHP Pecl” box type “imagick” without the quotes and click install now.
-------------------------------------------------------------------------------
للتاكد من ان التثبيت يعمل بشكل سليم ام لا
قم برفع ملف test.php المرفق فى المرفقات
To test if the extension works, you can run this PHP code:
كود:
<?php
$image = new Imagick();
$image->newImage(1, 1, new ImagickPixel('#ffffff'));
$image->setImageFormat('png');
$pngData = $image->getImagesBlob();
echo strpos($pngData, "\x89PNG\r\n\x1a\n") === 0 ? 'Ok' : 'Failed';
وشوف النتيجة الى هتظهر ok ام لا
اذا ظهر خطا 404 وقف .htaccess
اذا ظهر صفحة بيضاء اعمل ريستارت php + انتظر 5 دقائق + جرب حساب اخر
لابد وهيظهر لك انه يعمل
المرجع:
https://mlocati.github.io/articles/p...s-imagick.html
-------------------------------------------------------------------------------
اذا ظهر خطا فى imagic هتجد ان المشكلة ان البرمجة غير متوافقه مع اصدار php الحديث ويجب النزول الى اصدار php 5.6 حتى يعمل بدون مشاكل
المرجع:
https://bigstep.com/blog/how-to-inst...emagick-in-whm
https://www.supportclients.com/image...cpanel-server/
المفضلات