UPDATE: I realized I need to install ImageMagick on the same server that PHP is running on, in addition to using the php_imagick.dll library. I’ve tried a series of different combinations of versions of the ImageMagick installer and the php_imagick.dll library to no avail. How do I know which version number of each I should use?
I’m running PHP 5.6.40 (non-thread-safe) on a Windows Server 2019 machine.
My PHP website seems to be working for the most part except when I run php -m
in the command line I get the warning that the php_imagick.dll module could not be found.
When I run a test PHP file that calls phpinfo()
, the ImageMagick – php_imagick.dll extension is not listed anywhere.
In my php.ini file I have the full path for my extensions directory:
I also have the extension for ImageMagick (php_imagick.dll) listed in the php.ini:
ImageMagick (php_imagick.dll) is definitely in the extensions folder listed above:
Why am I receiving the warning it was unable to load that library when I run php -m
from the command line?
2
Answers
Probably, your server uses another
*.ini
file to load or some permissions are incorrect.php.ini-development
and uncomment the line containing your extension in each file.php_imagick.dll
library is visible by your PHP-server.refer to this doc, it helps me and solves. As, I am using Php 7.4