Installing PHP ImageMagick
Hi all,
i'm little confused on how to install ImageMagick for PHP.
i'm running a server with:
- CENTOS 7.5
- cpanel v74.0.9
- ImageMagick is not installed on the server
- Under "PHP Pecl" Installer i see "imagick (3.4.3)" not installed
- PHP Version 7.0.32
-
Installing the module using the module installer should not cause any issues. This is the best and only way to install modules without compiling them yourself. 0 -
I went through this a while back. There were a couple of issues I ran into that might help. When I tried to run the module installer to install Imagick, I got an error that popen() was disabled, and had to temporarily remove it from my disabled functions list in the php.ini for the relevant version of PHP to get Imagick installed, then add it back after the installation. After I got Imagick installed, it still showed it wasn't enabled when I looked at phpinfo(). I restarted Apache, and still, no joy. I finally realized that since I was running PHP-FPM, I had to restart the PHP-FPM service to get Imagick enabled. Once I restarted PHP-FPM, it worked like a charm. 0 -
Hi Guys! I have the same problem, I installed this one (Apache::ImageMagick (2.0b7)), I already reboot the server a couple of times but when I run a plugin in my website I keep viewing the same error: "No php extensions are available to edit images on the server. " - CENTOS 7.6
- cpanel v76.0.14
- ImageMagick is not installed on the server
- PHP Version 7.0.3
0 -
It seems like rebooting the server should have done it, but if you're using PHP-FPM, you might try restarting it specifically: WHM > Restart Services > PHP-FPM Service for Apache. 0 -
I'd also rebuild the httpd conf before restarting PHP-FPM as well. Let us know if that doesn't work @thenocgroup 0 -
I went through this a while back. There were a couple of issues I ran into that might help. When I tried to run the module installer to install Imagick, I got an error that popen() was disabled, and had to temporarily remove it from my disabled functions list in the php.ini for the relevant version of PHP to get Imagick installed, then add it back after the installation. After I got Imagick installed, it still showed it wasn't enabled when I looked at phpinfo(). I restarted Apache, and still, no joy. I finally realized that since I was running PHP-FPM, I had to restart the PHP-FPM service to get Imagick enabled. Once I restarted PHP-FPM, it worked like a charm.
This was a big help / reminder for me today. I haven't had to do it in a while, but just recently added PHP 7.4 since Ioncube 10.4 now supported EA / CloudLinux, and of course first thing I tested was a WP Site Health check, and sure enough it warned "the optional module, imagick, is not installed". So I used the Module installer in WHM and ran into the popen() issue, quickly did the php.ini edits to enable / install / disable, but completely forgot about the necessary PHP-FPM restart. This place is such a huge help!0 -
After I got Imagick installed, it still showed it wasn't enabled when I looked at phpinfo(). I restarted Apache, and still, no joy. I finally realized that since I was running PHP-FPM, I had to restart the PHP-FPM service to get Imagick enabled. Once I restarted PHP-FPM, it worked like a charm.
Thanks Dude! I've spent hours looking for this.0
Please sign in to leave a comment.
Comments
7 comments