Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Installing PHP ImageMagick

Discussion in 'EasyApache' started by aseptik, Oct 24, 2018.

  1. aseptik

    aseptik Member

    Joined:
    Jan 23, 2018
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Italy
    cPanel Access Level:
    Root Administrator
    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
    Since the server is live and running i don't want to mess up things (i would like to avoid problems like version inconpatibility, etc...).

    So, i'm wondering if there is a, proven, step by step process to install the PHP extension ?

    thank you as always for the support!
     
    #1 aseptik, Oct 24, 2018
    Last edited by a moderator: Oct 24, 2018
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,248
    Likes Received:
    478
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. linux4me2

    linux4me2 Well-Known Member

    Joined:
    Aug 21, 2015
    Messages:
    229
    Likes Received:
    60
    Trophy Points:
    28
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    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.
     
    cPanelLauren likes this.
  4. thenocgroup

    thenocgroup Registered

    Joined:
    Jun 25, 2018
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    argentina
    cPanel Access Level:
    Root Administrator
    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
    Any idea?
    Thank you so much!!
     
  5. linux4me2

    linux4me2 Well-Known Member

    Joined:
    Aug 21, 2015
    Messages:
    229
    Likes Received:
    60
    Trophy Points:
    28
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    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.
     
  6. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,248
    Likes Received:
    478
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    I'd also rebuild the httpd conf before restarting PHP-FPM as well. Let us know if that doesn't work @thenocgroup
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice