I have to support someone in setting up a PHP website on an IIS 7 server to which I don't have any remote access to. He's having trouble with permissions and doesn't know which user PHP is running under to give it correct write permissions on the document root. I've asked him to make a file with <?php php_info(); ?> in it, and he has, I have access to it but I don't know where to look for the php user.
What would be the correct place to look for the user that PHP is running under?
You can run below in file.php
This will give you user name.
OR
OR
Run any of will give user is running which service.