CGI error from PHP when running exec() on IIS

Posted by Patrick on Server Fault See other posts from Server Fault or by Patrick
Published on 2011-03-22T20:05:21Z Indexed on 2012/12/20 11:04 UTC
Read the original article Hit count: 232

Filed under:
|
|

Windows Server 2003 x64

PHP 5.2

IIS 6.0

The program Ink2Png.exe is set with Everyone->Read and Execute permissions.

As does its dependency (microsoft.ink.dll)

PHP Safe Mode is off

exec() is passed [the full exe path], space, [full path to another file]

This other file also has full read permissions.

The output directory has full write permissions.

As soon as exec() is hit, the connection dies, the browser does not even receive a full set of http headers, and it reports a CGI error. Examining the output, it appears the program was not even run.

Any ideas? How can I figure out what exactly is happening and get it running again?

EDIT: Also, it is a .NET application, if that is significant in any way.

© Server Fault or respective owner

Related posts about php

Related posts about iis