Re-iterating what took too long (couple of hours) to pinpoint and solve.

Getting ImageMagick (Imagick) installed on XAMPP 1.7.3 has it right there and clear, If you want to get Imagick installed on XAMPP 1.7.3, you’d need to:

  1. Install the LATEST OFFICIAL version of ImageMagick from http://www.imagemagick.org/script/binary-releases.php#windows . (I first tried installing the one from http://image_magick.veidrodis.com/image_magick/binaries/ specified in the post above, didn’t work here as it’s missing a required DLL).
    Download the Win32 dynamic at 16 bits-per-pixel version.
    Make sure it’s installed in a simple non spaces folder name, e.g. C:\imagemagick .
    During installation, make sure you check the box for “Add application directory to your system path” (otherwise make sure to do this manually).
  2. Download the following DLL – php_imagick.dll courtesy of http://www.sk89q.com (original link).
    Place this file into your php\ext folder inside xampp, e.g. C:\xampp\php\ext .
  3. Edit php.ini (C:\xampp\php\php.ini) and add the following line: extension=php_imagick.dll
  4. RESTART windows. (If you won’t, you might receive the following error: The program cannot start because CORE_RL_wand_.dll is missing from your computer.
  5. Start Apache. it should work well.

Thanks to jerodmoore.com I can now run a fully functional Drupal 7 on xampp on Win7.

  • Glad ya got it working 🙂

  • And

    Thank’s my friend this work 😀

    so can you help me i need script for pdf convert to image,and you can ccontact me on facebook => facebook.com/and.antariksa or email to Andre.Antariksa@yahoo.com so please help me for solved this 

  • StevenMc

    I’m running Windows 7 64 bit, XAMPP 1.7.3.
    I downloaded http://www.imagemagick.org/download/binaries/ImageMagick-6.7.7-0-Q16-windows-dll.exe and installed it, and restarted my machine.
    I downloaded this: http://www.sk89q.com/downloads/imagick/2.3.0/API20090626-TS-VC6/php_imagick.dll and added it to php/ext and added extension=php_imagick.dll to the relevant part of php.ini and restarted apache.
    When I run this PHP, Apache crashes:

    $im = new Imagick(‘img/spork.jpg’);

    There seems to be no way to make this work at all for me.  I’ve tried **all** techniques on all sites.  It’s just impossible.

  • hi StevenMC – did you look at the apache logs? maybe you can find something there…

  • StevenMc

     Well, when I restart apache I get “The program can’t start because php5.dll is missing from your computer”.  Then I get, “PHP Startup: Unable to load dynamic library “php_imagick.dll” – The specified module could not be found.   This only happens when I include the extension=php_imagick.dll line.  In the error.log I get: “[Wed May 23 13:04:44 2012] [notice] Parent: Received shutdown signal — Shutting down the server.”

  • StevenMc

     Actually, that comment about PHP Startup was using a different dll.  When using the one from this website linked above, when I user new Imagick(); Apache fails and this is the full error log from that operation:

    [Wed May 23 13:10:44 2012] [notice] Digest: generating secret for digest authentication …
    [Wed May 23 13:10:44 2012] [notice] Digest: done
    [Wed May 23 13:10:44 2012] [notice] Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1 configured — resuming normal operations
    [Wed May 23 13:10:44 2012] [notice] Server built: Nov 11 2009 14:29:03
    [Wed May 23 13:10:44 2012] [notice] Parent: Created child process 6296
    [Wed May 23 13:10:47 2012] [notice] Digest: generating secret for digest authentication …
    [Wed May 23 13:10:47 2012] [notice] Digest: done
    [Wed May 23 13:10:47 2012] [notice] Child 6296: Child process is running
    [Wed May 23 13:10:47 2012] [notice] Child 6296: Acquired the start mutex.
    [Wed May 23 13:10:47 2012] [notice] Child 6296: Starting 150 worker threads.
    [Wed May 23 13:10:47 2012] [notice] Child 6296: Starting thread to listen on port 81.
    [Wed May 23 13:10:47 2012] [notice] Child 6296: Starting thread to listen on port 81.
    [Wed May 23 13:10:47 2012] [notice] Child 6296: Starting thread to listen on port 80.
    [Wed May 23 13:10:47 2012] [notice] Child 6296: Starting thread to listen on port 443.
    [Wed May 23 13:10:47 2012] [notice] Child 6296: Starting thread to listen on port 443.
    [Wed May 23 13:10:47 2012] [notice] Child 6296: Starting thread to listen on port 90.
    [Wed May 23 13:10:47 2012] [notice] Child 6296: Starting thread to listen on port 90.
    [Wed May 23 13:10:47 2012] [notice] Child 6296: Starting thread to listen on port 80.
    [Wed May 23 13:10:51 2012] [notice] Parent: child process exited with status 3221226519 — Restarting.
    [Wed May 23 13:10:53 2012] [notice] Digest: generating secret for digest authentication …
    [Wed May 23 13:10:53 2012] [notice] Digest: done
    [Wed May 23 13:10:54 2012] [notice] Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1 configured — resuming normal operations
    [Wed May 23 13:10:54 2012] [notice] Server built: Nov 11 2009 14:29:03
    [Wed May 23 13:10:54 2012] [notice] Parent: Created child process 4116
    [Wed May 23 13:10:57 2012] [notice] Digest: generating secret for digest authentication …
    [Wed May 23 13:10:57 2012] [notice] Digest: done
    [Wed May 23 13:10:57 2012] [notice] Child 4116: Child process is running
    [Wed May 23 13:10:57 2012] [notice] Child 4116: Acquired the start mutex.
    [Wed May 23 13:10:57 2012] [notice] Child 4116: Starting 150 worker threads.
    [Wed May 23 13:10:57 2012] [notice] Child 4116: Starting thread to listen on port 90.
    [Wed May 23 13:10:57 2012] [notice] Child 4116: Starting thread to listen on port 443.
    [Wed May 23 13:10:57 2012] [notice] Child 4116: Starting thread to listen on port 443.
    [Wed May 23 13:10:57 2012] [notice] Child 4116: Starting thread to listen on port 90.
    [Wed May 23 13:10:57 2012] [notice] Child 4116: Starting thread to listen on port 81.
    [Wed May 23 13:10:57 2012] [notice] Child 4116: Starting thread to listen on port 81.
    [Wed May 23 13:10:57 2012] [notice] Child 4116: Starting thread to listen on port 80.
    [Wed May 23 13:10:57 2012] [notice] Child 4116: Starting thread to listen on port 80.

  • StevenMc

     Ignore this comment.

  • hard to say, your log doesn’t bring up any details… I’ve used a 32bit system, maybe this method doesn’t work for 64bit. 

  • StevenMc

    Yeah, I’ll try it at home on my 32bit XP machine…
    Thanks though, this article is great!

  • thanks 🙂
    original thanks goes to jerodmoore.com !

  • xampp 1.7.7

    for XAMPP 1.7.7 this was true:
    http://www.apachelounge.com/viewtopic.php?t=4029

  • Sid

     Thanks its working 🙂

  • Guest

    Does anybody have a link for vc9 complied dll?

  • Deshanru

    Thnxs mate you saved my day.
    .First i had several issues after trying to setup imagmagick and wasted couple of days….then i completely uninstalled XAMPP 1.7.2 and reinstalled and 
    re did your 5 steps with latest version of imagemagic..worked like a charm!!
    AND one small thing i got the error that “unable to load php_imagick.dll …not found somethin something” to solve this you have to go to propeties of php_imagick.dll and click unblock..hope this tip would help some one..