Where to find php_imagick.dll for php 5.5.12 for windows wampserver 2.5?

I am using Wampserver 2.5 on my Windows 7 (32 bit) and my version of PHP is 5.5.12 . I can not use IMAGICK .

I installed IMAGICK version 6.8.9 on my system and it works like a command line spell.

In addition, I followed the instructions to enable it on my wampserver server.

  • Paste " SetEnv MAGICK_HOME C: / imagemagick " into httpd.conf in Appache.
  • Downloaded php_imagick-3.1.2-5.5-ts-vc11-x86.zip
  • Copied and pasted php_imagick.dll from zip to php.ini in Appache.

When I run a simple script on php [$ a = new Imagick ()] I get the error [Class 'Imagick' not found] .

Please direct me on the correct installation path and the correct downloads before installing IMAGICK on Wampserver 2.5 / Windows 7 / 32bit / PHP 5.5.12 .

+6
source share
2 answers

Manual installation of imagick on Wamp, Xampp and IIS

  • Create an imagick folder in the php / ext folder.
  • Now add this newly created php / ext / imagick folder to the window path.
  • Download the latest imagick for windows from this link. http://windows.php.net/downloads/pecl/releases/imagick/
  • Download the php extension imagick from this link. http://windows.php.net/downloads/pecl/deps/
  • Before downloading these 2 zip files, match the file name of your installation with your php. eg. php_imagick-3.2.0b2-5.5-nts-vc11-x86.zip
    -There is 5.5 - this is php version
    -nts for IIS and windows (wamp) and ts for Apache and Linux (xampp)
    -VC11 and VC9 are the compilation version, run phpinfo and check that it matches your php version.
    -x86 for 32-bit x64 for 64-bit machines, I recommend using only x86
  • After you have downloaded the correct version for your php, extract the downloaded file to the imagique folder added to the path, take all the files from the bin folder to the imagick root and replace all
  • Add full path to php_imagick.dll in php.ini as extension = C: \ wamp \ php \ ext \ imagick \ php_imagick.dll
  • Restart your computer for the path to take effect. Then open a command and type dcraw and press enter. if you added the path correctly, a list of options appears, your Imagick will be installed successfully.
  • Run phpinfo again and you will see that Imagick is listed as an extension.
+18
source

I would add a small but important piece of advice because it took me 10 hours on Sunday to get it working.

This is for Win7 / 10 x64 and Wamp 2.5 x64

There is a php.ini file in the apache / bin folder, and a new line is added with the extension php_imagick.dll :)

0
source

Source: https://habr.com/ru/post/975068/


All Articles