locked
Startup folder stuck at the process startup time! RRS feed

  • Question

  • User957932771 posted

    PHP 5.2.6

    It looks like a Fast CGI process does not change the working directory per request basis. If the initial request served by a process was in:

    C:\Websites\Site1\index.php

    And then it is handed another file from a second Website:

    C:\Websites\Site2\index.php

    The file in Site2 is executed keeping C:\Websites\Site1 as the working directory. Most php applications fail as the relative paths used in them do not resolve correctly.

    After a Fast CGI process is launched, all subsequent requests are processed with the initial start-up folder as the working folder.

    The include directives in the php files fail, rendering FastCGI handler unusable.

    Is there any way to set the working folder per request basis?

    Thanks.

    Thursday, November 20, 2008 5:45 PM

All replies

  • User957932771 posted

    Looks like the actual problem is when the page is in Website's root folder, and the credential used to run the process does not have list access on the parent folder!

    In our hosting environment, the credential is by default locked to only Websites root folder and below.

    This is apparently a log standing php bug when it comes to ISAPI or Fast CGI Mode.

    Practically makes FAST CGI unusable in our hosting environment.

    That's sad.

    Thursday, November 20, 2008 6:25 PM