Skip to main content

Imagick

Comments

6 comments

  • cPanelMichael
    /usr/local/include/php/ext/pcre/php_pcre.h:29:18: error: pcre.h: No such file or directory

    Hello, This suggests the pcre and pcre-devel packages required for this PECL module are missing on your system. You can install them via the following commands:
    yum install pcre yum install pcre-devel
    Thank you.
    0
  • arjanvr
    Yes i just found it on the internet. Thank you for your fast reply! yum install pcre-devel was missing. I could not install it on all /opt/cpanel/ea-php56/root/usr/bin/pecl install imagick /opt/cpanel/ea-php71/root/usr/bin/pecl install imagick but not /opt/cpanel/ea-php70/root/usr/bin/pecl install imagick where it said root@vps3 [~]# /opt/cpanel/ea-php70/root/usr/bin/pecl install imagick -bash: /opt/cpanel/ea-php70/root/usr/bin/pecl: No such file or directory root@vps3 [~]# I had no such issue on another vps with the same setup. Why would it refuse ea-php70 but allow 56 and 71? Would using the command /opt/cpanel/ea-php70/root/usr/bin/pecl install imagick solve my initial issue of the error i received while using akeeba? Namely PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so' - /opt/cpanel/ea-php56/root/usr/lib64/php/modules/imagick.so: cannot open shared object file: No such file or directory in Unknown on line 0
    0
  • arjanvr
    Its not solved.. it also now shows the error when using akeeba restore HTTP Request Error HTTP Status: 500 (Internal Server Error) Internal status: error XHR ReadyState: 4 Raw server response:
    0
  • cPanelMichael
    HTTP Status: 500 (Internal Server Error)

    Hello, What's output to /usr/local/apache/logs/error_log when you see this error message? Also, you mentioned:
    root@vps3 [~]# /opt/cpanel/ea-php70/root/usr/bin/pecl install imagick -bash: /opt/cpanel/ea-php70/root/usr/bin/pecl: No such file or directory root@vps3 [~]#

    Are you sure PHP 7 is installed via EasyApache 4? If not, you can install it via:
    yum install ea-php70
    Thank you.
    0
  • arjanvr
    oh sorry, apearenly i forgot to install php7 there and only installed 7.1. Is there a reason to choose 7.0 over 7.1 or 5.6 or can i just leave it uninstalled? The 500 error, looking at the time frame and account name I would imagine it is this [Fri Nov 04 20:17:40.717770 2016] [core:alert] [pid 19249] [client 151.80.31.179:60354] /home/********/public_html/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration [Fri Nov 04 20:17:40.718030 2016] [core:alert] [pid 19249] [client 151.80.31.179:60354] /home/********/public_html/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration Somehow the errorlog is in apache2 btw? Can that 500 error be related to what i did above?
    0
  • cPanelMichael
    oh sorry, apearenly i forgot to install php7 there and only installed 7.1. Is there a reason to choose 7.0 over 7.1 or 5.6 or can i just leave it uninstalled?

    There's no need to install every available PHP version. You can choose to enable or disable the PHP versions that best suite your preferences.
    [Fri Nov 04 20:17:40.717770 2016] [core:alert] [pid 19249] [client 151.80.31.179:60354] /home/********/public_html/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration

    Check to ensure no "php_flag" values are added to that .htaccess file. Also, please review the following post regarding php.ini customization in EasyApache 4: EA4 php.ini/local.ini behavior Thank you.
    0

Please sign in to leave a comment.