• 0

Unable to fork


Question

I am running Windows 2000 Server, IIS 5 and PHP 4.4.2.

I am trying to run the following command :

<?
$cmd = "C:\\name.exe";
exec($cmd);
?>

I get the following error : Warning: exec(): Unable to fork [C:\name.exe] in c:\inetpub\wwwroot\varuna\index.php on line 3

And yes, the file does exist.

I understand it's an .exe and IIS sucks, but can anybody help me?

Link to comment
https://www.neowin.net/forum/topic/421495-unable-to-fork/
Share on other sites

4 answers to this question

Recommended Posts

  • 0

a quote from php.net

  Quote
Even more on the "unable to fork" error.

It was driving me crazy! I did check that the permissions were set for the IUSR_[server] account to read & exec cmd.exe. Yet still it failed. It wasn't until I got desperate that I happened to look in "special permissions." (Click the advanced tab underneath the regular list of permissions.) There I found that somehow the IUSR_[server] account had a special permission DENYING access! Of course deny overrides everything else.

This was a newly set up install of XP pro. It must be the default of something (I'd guess IIS) to set this deny permission just to make our lives miserable.

http://ca3.php.net/exec

Link to comment
https://www.neowin.net/forum/topic/421495-unable-to-fork/#findComment-587073993
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.