Skip to main content

Problem installing Imagick on Centos 7

Comments

9 comments

  • rbairwell

    Have you installed the ImageMagick packages before hand and then tried installing the PECL packages via the WHM->Software->Module Installers as per https://support.cpanel.net/hc/en-us/articles/360037048673-How-to-Install-ImageMagick-for-EA-PHP ?

    0
  • Unnamed User

    Hello, yes I tried, the exact same thing happens, it's stuck in phpsize

    0
  • rbairwell

    The fact it seems to be stopping before it even checks for ImagickMagick is odd (I assume " convert --version " provides details of the imagemagick install).

    If you try the first steps of a manual PECL install of ImageMagick:

    cd imagemagick_test/
    wget https://pecl.php.net/get/imagick-3.7.0.tgz
    tar -xvf imagick-3.7.0.tgz
    cd imagick-3.7.0
    /opt/cpanel/ea-php82/root/usr/bin/phpize

    do you get output such as:

    Configuring for:
    PHP Api Version:         20220829
    Zend Module Api No:      20220829
    Zend Extension Api No:   420220829

    ?

    If you don't, I would guess your PHP 8.2 installation is somehow b0rked and suggest trying removing and then reinstalling it via EasyApache to see if that makes a difference.

    0
  • kodeslogic

    Can you get back with the output of the below command?

    grep "disable_functions" /opt/cpanel/ea-php82/root/etc/php.ini

     

    Kodeslogic Web Solutions - cPanel Certified Partner

    Server Management Support ★ Outsourced Web Hosting Support ★ Submit a ticket
    Skype - live:kodeslogic

    0
  • Unnamed User

    Hi, yes:

    condor1634:~# grep "disable_functions" /opt/cpanel/ea-php82/root/etc/php.ini
    disable_functions = show_source, system, shell_exec, passthru, exec, popen
    condor1634:~# 

    0
  • Unnamed User

    Also, if I run phpsize manually on a downloaded imagick seems to work:

    condor1634:~/imagick-3.7.0# /opt/cpanel/ea-php82/root/usr/bin/phpize
    Configuring for:
    PHP Api Version:         20220829
    Zend Module Api No:      20220829
    Zend Extension Api No:   420220829
    condor1634:~/imagick-3.7.0# 

    0
  • kodeslogic

    Temporary remove "show_source, system, shell_exec, passthru, exec, popen" and try to install imagick using the below command:

     

    /opt/cpanel/ea-php82/root/usr/bin/pecl install imagick

     

    Once it is installed you re-add the disable_fuctions.

     

    Kodeslogic Web Solutions - cPanel Certified Partner

    Server Management Support ★ Outsourced Web Hosting Support ★ Submit a ticket
    Skype - live:kodeslogic

    0
  • Unnamed User

    Thank you very much!!! this seems to work.

     

    0
  • kodeslogic

    I'm glad that helped!

     

    Kodeslogic Web Solutions - cPanel Certified Partner

    Server Management Support ★ Outsourced Web Hosting Support ★ Submit a ticket
    Skype - live:kodeslogic

    0

Please sign in to leave a comment.