问题
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
回答1:
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:
- C:\wamp\bin\php\php5.4.12\php.ini
- C:\wamp\bin\php\php5.4.12\phpForApache.ini
- C:\wamp\bin\apache\apache2.4.9\bin\php.ini
Then I followed the steps given by fsasvari in following link
- Download ImageMagick: ImageMagick-6.7.7-5-Q16-windows-dll from here (other versions did not work for me)
- Install in C:\imagemagick, on last step check "Add application directory to your system path"
- Download Imagick DLL: PHP5.5.x version from http://www.peewit.fr/imagick/ (I have 5.5+ version installed on my localhost
- Copy php_imagick.dll to C:\wamp\bin\php\ext
- Download PHP 5.5 Thread Safe (TS) x86 version from http://pecl.php.net/package/imagick/3.1.2/windows
- Copy CORE_RL_* files to C:\wamp\bin\apache\bin\
- Edit php.ini file in C:\wamp\bin\apache\bin\php.ini, add extension=php_imagick.dll line in extensions section
- Copy all files from C:\imagemagick\modules\coders and C:\imagemagick\modules\filters to C:\imagemagick to load ImageMagick supported formats
- Go to Control Panel -> System -> Advanced Settings -> Environment Variables -> New System Variable -> MAGICK_HOME = C:\imagemagick
- Restart Wamp server and check phpinfo() for imagick plugin
- If last step does not work, restart Windows
Answer by fsasvari
来源:https://stackoverflow.com/questions/32495644/unable-to-install-php-imagick-dll-on-wamp