Hi,
I've got WHM (v100.0.2) on Cloudlinux 7.9 server. Default PHP version is 8.0 with mod_lsapi as php-handler. CageFS is enabled for all users.
I've successfully installed PECL imagick package for PHP 7.4 and PHP 8.0. No errors during install and i rebooted the server.
I've been doing testing if imagick is working, here are results:
- PHP 7.4, PHP-FPM (as PHP-handler) OK
- PHP 7.4, mod_lsapi OK
- PHP 8.0, PHP-FPM OK
- PHP 8.0, mod_lsapi NOT OK
I have no clue why imagick is not working when i'm using PHP 8.0 and mod_lsapi as handler. Same cPanel account with PHP-FPM as handler works fine. I'm using MultiPHP to change the PHP version.
PHP 8.0, PHP-FPM:
- PHPInfo says the PECL ini is loaded
- PHPInfo lists imagick
- Imagick is tested and working
PHP 8.0, mod_lsapi:
- PHPInfo says the PECL ini is loaded
- PHPInfo does not list imagick
- Imagick test fails. PHP error: Fatal error: Uncaught Error: Class "Imagick" not found in ...
Any tips how to solve this?
I've got WHM (v100.0.2) on Cloudlinux 7.9 server. Default PHP version is 8.0 with mod_lsapi as php-handler. CageFS is enabled for all users.
I've successfully installed PECL imagick package for PHP 7.4 and PHP 8.0. No errors during install and i rebooted the server.
I've been doing testing if imagick is working, here are results:
- PHP 7.4, PHP-FPM (as PHP-handler) OK
- PHP 7.4, mod_lsapi OK
- PHP 8.0, PHP-FPM OK
- PHP 8.0, mod_lsapi NOT OK
I have no clue why imagick is not working when i'm using PHP 8.0 and mod_lsapi as handler. Same cPanel account with PHP-FPM as handler works fine. I'm using MultiPHP to change the PHP version.
PHP 8.0, PHP-FPM:
- PHPInfo says the PECL ini is loaded
- PHPInfo lists imagick
- Imagick is tested and working
PHP 8.0, mod_lsapi:
- PHPInfo says the PECL ini is loaded
- PHPInfo does not list imagick
- Imagick test fails. PHP error: Fatal error: Uncaught Error: Class "Imagick" not found in ...
Any tips how to solve this?
Last edited: