PHP image problem

843 views
asked Apr 11, 2012 in General by deepa1 (1,580 points)
Hi,
Recently I noticed that the images on my website are not loading and when I checked the error log I found the following error:

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/imagick.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/imagick.so: cannot open shared object file: No such file or directory in Unknown on line 0
can someone please advice how to resolve this?

Thanks

1 Answer

0 like 0 dislike
answered Apr 11, 2012 by tareq101 (4,880 points)
This error indicates a wrong path or absence of the file. Make sure  that the file is available using the command

ls -l /usr/local/lib/php/extensions/no-debug-non-zts-20090626/imagick.so

If the path is different specify the correct one in php.ini

Also you need to check whether the .so file is correct by using the command

ldd /usr/local/lib/php/extensions/no-debug-non-zts-20090626/imagick.so

If the issue still persists, please recompile php with "imagemagick"
...