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 account. As in, I have permissions issues if public_html folder is set to nginx, but works fine if apache.
I can't seem to find anywhere else where it is seeing this apache account. I would even like to remove it, but userdel says that the user is logged on when i try this.