ID:               29001
 Comment by:       egarcia at egm dot as
 Reported By:      hartz at e-consult-ag dot de
 Status:           Open
 Bug Type:         IIS related
 Operating System: Windows XP
 PHP Version:      4.3.7
 New Comment:

This is not a problem in the PHP.
The problem is related to the execution permissions over the CMD to the
IUSR_machine and the ZIP exe file.

I do fork to GPG.exe in ISAPI/CGI modes. Using popen and proc_open.

According to the mode ISAPI/CGI the IWAM_/IUSR_ user must have read &
execute permissions over the CMD and the EXE file that you try to
call.

This sentence put the needed permissions:

cacls cmd.exe /E /G MACHINE\IUSR_MACHINE:R

Regards,


Previous Comments:
------------------------------------------------------------------------

[2004-07-06 10:17:30] hartz at e-consult-ag dot de

I tried it by running PHP as CGI binary with the same result

------------------------------------------------------------------------

[2004-07-06 10:15:08] hartz at e-consult-ag dot de

No,
it happens only under iis 5.0. Under apache and windows 2000 it runs
without any problems.

------------------------------------------------------------------------

[2004-07-06 01:54:55] [EMAIL PROTECTED]

Does this happen with some other webserver, like Apache?
(or if you run PHP as CGI binary)


------------------------------------------------------------------------

[2004-07-03 18:47:56] hartz at e-consult-ag dot de

Description:
------------
If i exec the follow code 

$lbRet = exec("\\bin\\zip.exe /zipfolder",$laOutput,$liRet);
over a webinterface (Windows XP, IIS 5.0, PHP-ISAPI-Module)
i get an error like "unable to fork ...".

After reading the php-documentation and bug-database i tried to exec
the following code with the same result:
$lbReturn = exec("cmd /c ..\\bin\\zip.exe
tmp/zipfolder",$laOutput,$liReturn);

The IUSR_ has the correct rights for executing and reading the both
files (cmd and zip).




------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=29001&edit=1

Reply via email to