ID: 26140 Updated by: [EMAIL PROTECTED] Reported By: chris at cjconsulting dot co dot uk -Status: Open +Status: Bogus Bug Type: IIS related Operating System: Windows Server 2003 PHP Version: 4.3.4 New Comment:
Misconfigured webserver/PHP. Ask further support questions elsewhere. (can not reproduce) Previous Comments: ------------------------------------------------------------------------ [2003-11-05 08:40:00] chris at cjconsulting dot co dot uk Description: ------------ I recently had to upgrade a host to Windows 2003 Server, IIS 6 and PHP 4.3.4. Everything seems to work OK except when I try to use exec() or passthru(). I get errors similar to the following Warning: passthru(): Unable to fork [c:/Inet/MIS/sql/echo.bat] in c:\inet\MIS\MIS\Conv.php on line 91 Both exec() and passthru() give the same error. I stall have another host running Windows 2000 Server, IIS 5 PHP 4.3.2 and the same code works fine. I've checked all the config options for scripting and turned them all on! By default 2003 Server and IIS installs in a heavily protected mode Reproduce code: --------------- if ($Action == "PerlBat") { $Ans = passthru("echo.bat", $Ret); } echo.bat -------- echo "hello bat !!!" 1>echo.outbat 2>>echo.err NOTE: the above is just a simple example script, my applications run much more complicated scripts Expected result: ---------------- I expect the script to execute. Actual result: -------------- Script fails to run. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=26140&edit=1