Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

which user apache runs as ubntu

ps -ef | egrep '(httpd|apache2|apache)' | grep -v `whoami` | grep -v root | head -n1 | awk '{print $1}'
Source by serverfault.com #
 
PREVIOUS NEXT
Tagged: #user #apache #runs #ubntu
ADD COMMENT
Topic
Name
5+8 =