简体   繁体   中英

Unable to install php_imagick.dll on wamp

I tried various tutorials online as well steps given on SO answers but nothing worked.

I am using windows 64 bit and m using wamp 2.4 ver and php 5.4.12 I have tried various combinations of Imagemagik and php_imagick.dll but nothing worked

Please help, its very important for to run it

I am getting the following error

在此处输入图片说明

I know we can open php.ini directly from wamp icon shown in tray but in my case it was not opening. So i was manually opening it from C:\\wamp\\bin\\php\\php5.4.12 But then i realized that we have to make changes in three files to make it work. That are:

  1. C:\\wamp\\bin\\php\\php5.4.12\\php.ini
  2. C:\\wamp\\bin\\php\\php5.4.12\\phpForApache.ini
  3. C:\\wamp\\bin\\apache\\apache2.4.9\\bin\\php.ini

Then I followed the steps given by fsasvari in following link

  1. Download ImageMagick: ImageMagick-6.7.7-5-Q16-windows-dll from here (other versions did not work for me)
  2. Install in C:\\imagemagick, on last step check "Add application directory to your system path"
  3. Download Imagick DLL: PHP5.5.x version from http://www.peewit.fr/imagick/ (I have 5.5+ version installed on my localhost
  4. Copy php_imagick.dll to C:\\wamp\\bin\\php\\ext
  5. Download PHP 5.5 Thread Safe (TS) x86 version from http://pecl.php.net/package/imagick/3.1.2/windows
  6. Copy CORE_RL_* files to C:\\wamp\\bin\\apache\\bin\\
  7. Edit php.ini file in C:\\wamp\\bin\\apache\\bin\\php.ini, add extension=php_imagick.dll line in extensions section
  8. Copy all files from C:\\imagemagick\\modules\\coders and C:\\imagemagick\\modules\\filters to C:\\imagemagick to load ImageMagick supported formats
  9. Go to Control Panel -> System -> Advanced Settings -> Environment Variables -> New System Variable -> MAGICK_HOME = C:\\imagemagick
  10. Restart Wamp server and check phpinfo() for imagick plugin
  11. If last step does not work, restart Windows

Answer by fsasvari

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM