skip to Main Content

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:
Extensions Directory Path

I also have the extension for ImageMagick (php_imagick.dll) listed in the php.ini:
ImageMagick extension

ImageMagick (php_imagick.dll) is definitely in the extensions folder listed above:
Extensions

Why am I receiving the warning it was unable to load that library when I run php -m from the command line?

Modules

2

Answers


  1. Probably, your server uses another *.ini file to load or some permissions are incorrect.

    1. Try to search other configuration files such as php.ini-development and uncomment the line containing your extension in each file.
    2. Make sure your php_imagick.dll library is visible by your PHP-server.
    3. Restart your PHP-server after any changes in configuration files.
    Login or Signup to reply.
  2. refer to this doc, it helps me and solves. As, I am using Php 7.4

    https://www.geeksforgeeks.org/how-to-install-imagick-for-php-in-windows/
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search