I am not a PHP expert, but I was having a play with the latest Magento 2 code drop on GitHub. I thought I would share some little experiences in case helpful to anyone else.
I have Windows 7 on my laptop, so I am running XAMPP for my stack. I had an older installation with an older version of PHP, so I replaced PHP with version 5.5. (There are newer XAMPP versions I notice now.) I think only PHP 5.4 is currently officially supported by Magento 2, but I did not want to have to upgrade again any time soon so I took the chance.
Magento 2 seemed to all fire up, but when I went to save a Administration page configuration setting (to turn logging on) I got an error saying ImageMagick was required.
So I grabbed a copy of ImageMagick-6.8.7-Q16 (the latest I could find), then grabbed the first php_imagick.ddl I could find and threw it in C:\xampp\php\ext, added extension=php_imagick.dll in my C:\xampp\php\php.ini file, and thought I was good to go!
Bzzt! I hit the new DLL hell of 32 versus 64 bit binaries and DLLs. After being more careful to get 32 bit versions, I used the XAMPP control panel to restart Apache – and promptly got errors about a missing CORE_RL_wand_.dll.
Google is your friend – a quick search and I came across an old post for the same error with Ruby. This is where I went off the rails – this post is only to help others avoid my mistake here. It said “use an older version of ImageMagick”. The problem was I could not find the older version mentioned!
To cut a long story short, it turned out to be a much easier to fix. I had not restarted the XAMPP control panel – it must have been picking up an old DLL. Restarting the XAMPP control panel and then restarting Apache worked perfectly. Magento 2 is up and I can start playing.
So the latest ImageMagick build does work with the php_imagick.ddl I got (from http://www.peewit.fr/imagick/ in my case). The stack overflow article was out of date.
Reblogged this on Sutoprise Avenue, A SutoCom Source.
Hi! I’m yuny. I’m in same trouble.(I get file here-http://www.peewit.fr/imagick/ )
Please, give me that file.(imagick.dll).
Hi,
I still can’t get Imagemagick to work with Xampp (I’m using the latest version on Windows 7).
The post says where you got the files but not exactly which ones you used in the end.
Could you tel me the exact files you ended up using?
Thanks in advance,
Aidan
More than one person has now had problems (I emailed the first directly). My PHP version is:
PHP 5.5.3 (cli) (built: Aug 20 2013 16:31:19)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies
with Xdebug v2.2.3, Copyright (c) 2002-2013, by Derick Rethans
The DLL I am using is from the web site above (http://www.peewit.fr/imagick/)
Imagick for PHP 5.5.x
Build type: Release
Compiler: MSVC11 (Visual C++ 2012 Express)
Architecture: x86
Thread Safe
Build Date: Jul 9th, 2013 21:17:35 (CET)
Download: php_imagick.dll (250 Kio)
Tested under Windows 7 Premium x64 SP1 with:
•Nginx 1.5.2 (Win32 x86 with openssl 1.0.1e)
•PHP 5.5.1 VC11 x86 Thread Safe (Jul 18 2013 10:52:32)
•ImageMagick 6.8.4-0 2013-03-25 Q16
Sorry, I am not enough of a PHP expert to help other than “it works for me”!