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.
- When I run exec('whoami'), it returns nt authority\iusr.
- When I run proc_open('whoami', $desc, $pipes), the result isiis apppool\mysite.
Why is this happening?