I need install ImageMagick for PHP 5.4.7 on Windows.
How do I install it?
Advertisement
Answer
Step by step:
- Download the binary version for Windows Install you binary version.
- Test you install in CMD
- Execute
convert
inCMD
.
- Execute
- If this work, the intall is success.
- Now, download Imagemagick DLL for PHP
- Open imagemagick-php54-php53.tgz
- In Explorer, go to PHP extension folder
- PHP:
C:phpext
- XAMP:
C:xamppphpext
- PHP:
- Copy
TS
orNTS
DLL’s (php_imagick_(nts|ts).dll
) from imagemagick-php54-php53.tgz:- For PHP 5.3
- imagick-php54-php53.tgzimagickphp53
- For PHP 5.4
- imagick-php54-php53.tgzimagickphp54
- For PHP 5.3
- Paste in you PHP Extension folder.
- In explorer, edit you php.ini
- Add the follow line:
if you use TS
extension=php_imagick_ts.dll
If you use NTS
extension=php_imagick_nts.dll
Now, restart you apache/ngnex server.
IMPORTANT!
If you have a error to start apache/ngnex with the message Unable to find CORE_RL_Wand.dll something something.
- Open imagemagick-php54-php53.tgz
- Go to
imagick-php54-php53.tgzimagickImageMagick-x.x.x-vcx
- In my case
imagick-php54-php53.tgzimagickImageMagick-6.8.0-vc9
- In explorer go to:
- Win 32:
C:WindowsSystem32
- Win 64:
C:WindowsSysWOW64
- Uncompress all DLL’s from
imagick-php54-php53.tgzimagickImageMagick-x.x.x-vcx
- And start you apache/ngnex server.