Finding out what user Apache is running as?
apachectl -S
ps aux | egrep '(apache|httpd)'
ps -ef | egrep '(httpd|apache2|apache)' | grep -v `whoami` | grep -v root | head -n1 | awk '{print $1}'
apachectl -S
ps aux | egrep '(apache|httpd)'
ps -ef | egrep '(httpd|apache2|apache)' | grep -v `whoami` | grep -v root | head -n1 | awk '{print $1}'