IIS7 Impersonate PHP Fast-CGI as local user
daniel posted this on Sep 10th 2009 at 1:48 pm under Scripting, Windows
The problem i had that i had to talk to a dll through COM on a windows server in PHP.
I needed to run the site as another user than the standard IURS.
I tried setting the identity of the application pool, no success.
Finaly i found the solution;
The (default) website advanced settings page has the option to specify the Physical Path Credentials.
I set this to a regular system account, and checked within PHP with:
echo get_current_user();
Everything worked!