Web Hosting Geeks | Web Hosting Experts
Need help? Call us 1(866)TOP-HOST

14120 reviews 1680 hosting providers

Questions & Answers

PHP image problem

Apr 11, 2012 by deepa1
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 votes
Apr 11, 2012 by tareq101
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"