- Plesk for Linux
The following warning is shown when executing PHP-CLI version 5.x:
CONFIG_TEXT: PHP Warning: PHP Startup: Unable to load dynamic library '/opt/plesk/php/5.4/lib/php/modules/imagick.so' - /opt/plesk/php/5.4/lib/php/modules/imagick.so: cannot open shared object file: No such file or directory in Unknown on line 0
The package for imagick has been removed:
# dpkg --list | grep plesk-php54-imagick
rc plesk-php54-imagick 3.1.2-debian8.0.15061718 amd64 Provides a wrapper to the ImageMagick library
Imagick extension is enabled at the PHP directory:
# grep -Ri imagick.so /opt/plesk/php/5.4/etc/
PHP extension is enabled but the package has been uninstalled from the system.
Connect to the server via SSH and perform any of the following actions:
Option a: Re-install the missing package
# apt-get install plesk-php54-imagick
Option b: Comment the extension if it's not needed. open
/opt/plesk/php/5.4/etc/php.d/imagick.iniin any text editor and comment the following line:
# cat /opt/plesk/php/5.4/etc/php.d/imagick.ini
. . .
Note: If have been performed a distro-upgrade from Ubuntu 16.04 or Debian 8, won't be possible to install such PHP extension as it's no longer available. In that case, it's need to comment the extension.