Imagick

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Imagick

Postby bob2011 » 19. November 2011 17:36

I have recently installed XAMPP 1.7.7 on my laptop running Windows 7.

I have installed ImageMagick and have tried to install Imagick. However after installing php_imagick_ts.dll in the php/ext folder and modifying php.ini to look for the extension apache will not launch and the dll is not found.

Any suggestions ?
bob2011
 
Posts: 5
Joined: 06. June 2011 08:57

Re: Imagick

Postby Sharley » 20. November 2011 00:28

If you used the instructions from here then you are not alone in imagic crashing Apache.
http://valokuva.org/?page_id=50
Although this blogger posted it worked for him using the info from the Apache Lounge below:
http://valokuva.org/?page_id=50#comment-26540
and from here:
http://valokuva.org/?page_id=50#comment-22560

The latest version of imagemagick is compiled with Visual Studio 2010 and Apache and PHP are compiled using VC9 (conflict) and the included extensions should all be compatible:
http://www.apachelounge.com/viewtopic.php?t=4029

So the solution offered above was to download and install the VC9 compiled imagemagick and then the dll from Mikko's should work.

Please let the forum know back if you eventually had imagemagick work for you.

Thanks and good luck. :)
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Imagick

Postby bob2011 » 20. November 2011 11:33

I removed the latest version of ImageMagick and installed 6.6.2-10 as advised. Running IMDisplay.exe from Windows Explorer worked fine.

I downloaded both the ts and nts versions of php_imagick.dll (version 2011-04-25) from the site stated renamed them both to php_imagick.dll.

Added extension=php_imagick.dll to the php.ini file.

When I tried to start Apache server I got the following errors:=

With ts version of php_imagick.dll
httpd.exe system error. Program can't start because CORE_RL_wand.dll is missing
followed by
PHP startup. Unable to load dynamic library
C:\xampp\php\ext\php_imagick.dll could not be found.

The dll was in the correct directory according to Windows Explorer

With nts version of php_imagick.dll
httpd.exe system error. Program can't start because php5.dll is missing
followed by
PHP startup. Unable to load dynamic library
C:\xampp\php\ext\php_imagick.dll could not be found.

The dll was in the correct directory according to Windows Explorer.

The errors were the same as I had experienced with the later 6.7.3-6 version of ImageMagick.

Any further suggestions would be welcomed?
bob2011
 
Posts: 5
Joined: 06. June 2011 08:57

Re: Imagick

Postby roman2 » 10. December 2011 00:42

I've done exactly what was described on http://www.apachelounge.com/viewtopic.php?t=4029 and got imagick extension to work with XAMPP 1.7.7 (comes with PHP 5.3.8 ) on Windows 7. And I've tested it when using PHP as an Apache handler/module and also in CGI mode.

More specifically, I installed ImageMagick-6.6.2-10-Q16-windows-dll.exe and used php_imagick_ts.dll (built on 2011-04-25). I made sure to have a path to ImageMagick added to my system's path and restarted Apache.

Restarting Windows isn't required if you know what happens (*). If you don't, restart it!

* A program keeps a copy of environment variables, and if you use the same instance of XAMPP control panel to launch Apache, newly installed ImageMagick's DLLs won't be found because that instance of XAMPP control panel still has and passes to a new process it launches the old environment variables (particularly, the PATH variable). Same will happen if you close the control panel and open it using the same instance of a file manager. So, after I installed ImageMagick, I terminated the XAMPP control panel (note that it doesn't exit when you simply close its window), closed my file manager, and reopened both of them.
Last edited by roman2 on 14. December 2011 00:18, edited 4 times in total.
roman2
 
Posts: 17
Joined: 03. July 2009 15:56
Operating System: 32-bit Windows 7

Re: Imagick

Postby Sharley » 10. December 2011 00:46

roman2, would you be so kind as to add your XAMPP version and Operating System to your profile:
viewtopic.php?f=16&t=48626
Thanks. :)
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Imagick

Postby roman2 » 10. December 2011 00:49

Done, Sharley. Is that just for statistics to see which versions are being used?
roman2
 
Posts: 17
Joined: 03. July 2009 15:56
Operating System: 32-bit Windows 7

Re: Imagick

Postby Sharley » 10. December 2011 00:56

roman2 wrote:Is that just for statistics to see which versions are being used?
No, it is for providing the correct version support as now we have many different Operating Systems interacting differently with now differently compiled XAMPP versions and saves time (and patience) by keep asking for this info when responding to a support request.

Thanks for adding your info to your profile. 8)

Best wishes. :)
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 119 guests