I get this error when uploading a file.
Warning: exec(): Unable to fork [""C:/Program Files/ImageMagick-6.0.2-Q16convert" -quality 80 -antialias -geometry 150x115 "D:/WebPics/./albums/edit/mHTTP_temp_74436322.jpg" "D:/WebPics/./albums/edit/preview_75064c5f.jpg""] in D:\WebPics\include\picmgmt.inc.php on line 152
This is a 2003 server. IM is installed and security is set to allow the two IIS accounts full control. The path is also correct.
I have tried installing IM to a directory without a space and have the exact same result.
Please help!
Try this thread. http://forum.coppermine-gallery.net/index.php?topic=7271.0
Please search in future.
Error executing ImageMagick - Return value: -1
Unable to fork
Reference from another gallery program (not sure if it is all necessary):
Two things that are Windows Server 2003 and IIS 6.0 specific:
First of all, during the uploading of a picture, gallery runs cmd.exe that runs ImageMagick\convert. The security identifier trying to add the converted picture to your gallery turns out to be NT AUTHORITY\NETWORK SERVICE and not IUSR_<server>. This means that in order to upload pictures that are larger than the specified thumbnail size (those that need to be resized) then you'll need to give "NETWORK SERVICE" "Write" access to your albums directory. It will already have "List Folder Contents" inherited from above.
I only needed to give CMD.EXE Read & Execute permissions for the IUSR_<server> in windows\system32 to make it all work.
Ok. I had the same problem (Under WinXP Pro + IIS + PHP + MySQL + ImageMagick) and I solved it by allowing read & execute permissions to IUSR_<SERVER> on cmd.exe file.
But I think it can be a security issue, don't ya think?
Anyone solved the problem somehow else?
Regards,