Page 1 of 1

Apache starts then Stops due to Imagick extension

PostPosted: 10. January 2013 16:26
by arpeggioC
Hi All,

I'm hoping someone can help me with this pls.
XAMPP Control Panel v3.0.2
XamPP Version 1.7.7
PHP Version 5.3.8

I just installed ghostscript & imagemagick and all works fine on the Command line.

Then i installed the php_imagick.dll file in the php/ext folder and updated the php.ini file to read:

extension= php_imagick.dll in the Windows Extensions just above extension=php_bz2.dll

with "extension= php_imagick.dll" commented out, Apache starts and stays on.

with "extension= php_imagick.dll" included in the file Apache starts then stops a couple seconds later.

Can anyone help me fault find this problem? Where do i look etc.

in the XAMPP Control Panel v3.0.2 it reads:
Satrting Apache service....
Status change detected: running
Status change detected: stopped

Thank you in advance for anyones help.

with best regards,

arpeggioC

Re: Apache starts then Stops due to Imagick extension

PostPosted: 10. January 2013 23:48
by hackattack142
Hello,

This typically means some combinations of 3 different issues.

1: You have the incorrect DLL for your version/build of PHP.
XAMPP 1.7.7 will require you to have DLLs compiled for PHP 5.3 Thread Safe (TS) 32-bit VC++ 2008 (AKA VC9)

2: You are missing external requirements for that DLL to load.
In this case, I think the only external requirement of this DLL is having ImageMagick installed on your system. Requirements can typically be found on the PHP Manual site: http://php.net/manual/en/imagick.requirements.php

3: You have incompatible external requirements for your version of the DLL.
Since you will need the 32-bit VC9 version of the DLL, you will also need the 32-bit VC9 version of ImageMagick installed on your system. This means you cannot install the latest version of ImageMagick since it is compiled with VC10 and will need to find an older version.

Re: Apache starts then Stops due to Imagick extension

PostPosted: 11. January 2013 08:04
by arpeggioC
Thank you very much Hack Attack for your fully comprehensive reply.
excellent and that was exactly the problem! My PHP build is VC9 and so i found the thread safe dll file here: http://valokuva.org/builds/
After renaming to match the file name extension i wrote in the php.ini file & placing in the "ext" folder Apache switches on and most importantly stays on!!
beautiful ! Thank you.
arpeggioC