Home > Computing, Internet, Programming, php > php: Installing imagick extension on WindowsXP

php: Installing imagick extension on WindowsXP

This may seem simple enough to many programmers out there but this threw me for a few days. This is how you install imagick on a windows server. If your site is on a shared host, you need to ask your host to install the extension for you.

For this example I am running php 5.2.4 on Abyss/Apache web server

Download the matching pecl5 Binary from php.net. In this case its pecl5.2-win32-200710121230.zip (matching my current php version).

Unpack the file.

Copy the php_imagick.dll into php/ext/ directory

php pecl dll

Open your php.ini file and look for the “Dynamic Extensions” area. In there will be a list of items (some commented out). Add the following line to the bottom of the list: extension=php_imagick.dll

Add the extension to your ini

Save the changes you made.

Restart your web server.

If these steps were successful imagick will show up on any php page using the phpinfo() function.

imagick in the phpinfo()

imagick, pecl-extension, php-extension

Categories: Computing, Internet, Programming, php Tags:
  1. January 16th, 2012 at 03:35 | #1

    Your posts are extremely helpful and informative.

  1. No trackbacks yet.