Skip to main content

PHP 8 and PECL imagick not working

Comments

5 comments

  • cPanelAnthony
    Hello! I see you're using LSPHP. LSPHP, similar to PHP-FPM, runs separately from the Apache process, so, when making changes outside of EasyApache (with PECL, for example) you'll need to manually restart LSPHP.
    0
  • daynight
    Thank you for answering. Problem is still there. 1) Restarting the whole virtual server does not restart LSPHP process/processes? Please explain how is that possible? 2) I tried this method mentioned in the docs: touch /home/CPANELUSERNAME/mod_lsapi_reset_me No help there. The file 'mod_lsapi_reset_me' is sitting in the users home directory. PHP gives same error as before. 3) I attached a screenshot of partial phpinfo page. See the screenshot. There's this line: Additional .ini files parsed: there's long list of different PHP extensions and the last additional ini file is: /opt/cpanel/ea-php80/root/etc/php.d/zzzzzzz-pecl.ini This 'zzzzzzz-pecl.ini' includes following: extension="imagick.so" To my understanding PHP 8.0 (with mod_lsapi as handler) loaded correct ini files. But still imagick is not working. 4) Imagick is working with PHP 7.4 (mod_lsapi). I installed PHP 7.4 extension same way as PHP 8.0 version. I didn't have to restart any LSPHP services or do any jumps or hoops. It just worked right of the bat. Any further tips i should try?
    0
  • daynight
    Problem solved! I've been clicking the CageFS update command via WHM -> Plugins -> CageFS -> Update CageFS skeleton. So i thought CageFS is not part of this problem. Seems like the CageFS was the problem. I forced the CageFS update on: cagefsctl --force-update and now imagick extension is working with PHP 8.0 (mod_lsapi). Finally. Now i can do my work and update the production servers. If someone knows why CageFS was the problem, please tell :)
    0
  • cPanelAnthony
    I'm not seeing any obvious reason why it shouldn't be working. Would you be able to open a ticket with the link in my signature and provide me with the ID? Thank you!
    0
  • daynight
    No need for a ticket. This problem is solved. Life goes on.. This thread can be marked as solved. Thank you!
    0

Please sign in to leave a comment.