OK, having issues. My PHP script works except for 1 line.
This line tries to execute an outside command with exec()
.
I get:
Warning: exec(): Unable to fork
I tried searching for an answer. Several sites say I have to set the permissions on cmd.exe
. Whether I do that in system32
or syswow64
, I'm not sure.
Also not sure what user to add. ISUR
or the user (lime
) I get from get_current_user()
.
Windows won't let me add any users to the security list (right click on file, properties, security, edit).
It also won't let me use icacls cmd.exe /grant IUSR:F
(access denied in system32)(The handle is invalid in syswow64)
I've already added full access rights (ISUR
, SYSTEM
, SERVICE
, NETWORK
SERVICE
, lime
, Everyone
, and IIS_ISURS
) to the folder where a file will be created. I realize this is overkill, and have to pare this down.
I'm going to have to do this in both Windows 7x64 (dev machine) & Windows Server 2012 (production).
So many examples I find are either geared for previous systems, or don't go into enough details.
Can someone please help me? I need to get the script working. Thanks