which user apache runs as ubntu

Shell
ps -ef | egrep '(httpd|apache2|apache)' | grep -v `whoami` | grep -v root | head -n1 | awk '{print $1}'
Source

Also in Shell: