1

nginx setup as one user, but whoami reports a different user

view story
linux-howto

http://serverfault.com – I have nginx set up on a test machine, hosting Wordpress. I was trying to figure out some permissions problems, and ran across something that I can't figure out. Even though everywhere I know of I am telling it run as the user 'nginx', whoami reports back 'apache'. In the nginx.conf file, I have user nginx setup. If I run ps aux | grep [n]ginx, the master process runs as root, the worker is running as nginx. My site config file has nothing mentioning apache in it I have <?php echo(exec("whoami")); ?> on a php page, and it responds as 'apache' Permissions are tied to this apache ac (HowTos)