0 votes
123 views
in Cloud by
edited
I have hosted one of my WordPress website is windows server, sine some of the plugins need the PHP extension, I need to setup it in my IIS windows server, Anyone can advice the steps to do the same

2 Answers

0 votes
by

1) Download the Extention from the official page (Pick the most current, NON “RC” version)
    https://windows.php.net/downloads/pecl/releases/imagick/

2) Download the version Eg: php_imagick-3.7.0-7.4-nts-vc15-x64.zip for PHP 7.4

3)Make sure you have Visual C 15 runtime installed, install it if needed

4)Extract the downloaded file to a temp directory

5)Copy "php_imagick.dll" to PHP/ext directory (eg:C:\Program Files\PHP\PHP7.4\ext )

6)From the extracted directory copy all the below files and move them to the PHP root folder(eg:C:\Program Files\PHP\PHP7.4\)

  1. Copy all CORE_RL*.DLL (28 files)
  2. Copy all FILTER*.DLL  (one)
  3. Copy all IM_MOD_RL (134 files)
     
7)Make sure  "extension=php_imagick.dll" is added in the php.ini file
 
8)Restart IIS server and check PHP info page to see if the extension is enabled
0 votes
by

Try these steps, it worked for me

1. In order to install the extension you need to find out the PHP version of your system, open the command line and run the command  php -i|find "PHP Version"

2. Run the command to find out if thread safety is enabled php -i|find "Thread Safety"
You’ll have enabled thread-safe or disabled for not thread-safe

3. Run the command to find the architecture php -i|find "Architecture"

4. Once you have found the above parameters download the dll of the PHP extension and the ImageMagick archive from the below URL
https://mlocati.github.io/articles/php-windows-imagick.html

5. Once you have downloaded the file, extract it and copy 
php_imagick.dll  to the ext folder of the PHP installation

6.Copy other dll files(they may start with CORE_RL, FILTER, IM_MOD_RL,or ImageMagickObject depending on the version)) and save them to the PHP root directory (where you have php.exe)

7. Add the like extension=php_imagick.dll in your php.ini file

8. Restart your IIS webserver

...