I have this problem: On a ISS web server, windows 7 x64 professional, zend server installed. Running this command under php:
exec(\'dir\',$output, $err);
>
You can check permisssions of IIS User to cmd.exe
cacls C:\WINDOWS\system32\cmd.exe
If in output is line like (COMPUTERNAME=your computer name):
C:\WINDOWS\system32\cmd.exe COMPUTERNAME\IUSR_COMPUTERNAME:N
It means that user has no rights to execute cmd.
You can add execute permissions with command:
cacls C:\WINDOWS\system32\cmd.exe /E /G COMPUTERNAME\IUSR_COMPUTERNAME:R