Php – CGI error from PHP when running exec() on IIS

execiisPHP

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.

Best Answer

@Patrick: If you've only given the user Everyone access, then you'll need to add read/execute permissions for IUSR_<MachineName> and IWAM_<MachineName> as well and IIS_WPG too if you're still having issues. Remember to give Write access for all those users for your output directory as well.