Installing ImageMagick extension with php/windows

Posted by Jason on Stack Overflow See other posts from Stack Overflow or by Jason
Published on 2010-05-18T14:59:00Z Indexed on 2010/05/18 15:00 UTC
Read the original article Hit count: 346

Running PHP Version 5.2.5 on Windows Server 2003 with IIS.

Have virtually an identical server where we were able to install ImageMagick with no issues. It's running exactly the same version of php. Used the following steps to install, but it just won't seem to work on this server. ImageMagick itself is installed but php won't load the extension.

We've spent hours trying to get the extension installed. It just won't show up in phpinfo().

INSTALL STEPS TAKEN*

To install IMagick on windows xp (php 5.2.x)

1.) download and install ImageMagick-6.5.8-7 Q16-windows-dll.exe http://www.imagemagick.org/download/binaries/ ImageMagick-6.5.8-7-Q16-windows-dll.exe

2.) download php_imagick_dyn-Q16.dll from: http://valokuva.org/outside-blog-content/ imagick-windows-builds/080709/

copy dll to [PHP]/extension dir and rename it to php_imagick.dll

3.) You have to edit your php.ini file and add new extension

"extension=php_imagick.dll"

4.) Save ini file and restart apache server.

(If necessary, restart your windows)

5.) phpinfo() should show imagick enabled.

© Stack Overflow or respective owner

Related posts about php

Related posts about php5