IIS 7 and Above
Why are exec and proc_open running under different user on IIS?
Last post Nov 11, 2015 01:39 AM by Pengzhen Song - MSFT
Nov 10, 2015 05:03 AM|BorekBernard|LINK
Reposting from here as we couldn't get an answer on StackOverflow.
I'm running my site on Windows Server 2012 R2 and IIS 8.5 and I encountered a problem.
Why is this happening?
Nov 11, 2015 01:39 AM|Pengzhen Song - MSFT|LINK
As I know, When fastcgi.impersonate is enabled in php.ini, PHP will perform all the file system operations on behalf of the user account that has been determined by IIS authentication. and if you enable
anonymous authentication which by default use IUSR account, whoami.exe will run via Iusr account.
You can try to edit anonymous authentication credetials as "application pool identity" instead of "IUSR". For more information, please refer to the document:
Hope it can help you.