apache run as root?

3 posts / 0 new
Last post
#1 Mon, 02/24/2014 - 11:00

apache run as root?


I just installed virtualmin through the automatic script, and I created a virtual server. Then I ran "top" in the terminal, I found apache was running as the user "root" instead of the virtual server owner. What kind of configuration should I do after virtualmin installation?


Mon, 02/24/2014 - 11:18


The parent Apache process is indeed run as root -- that's normal Apache behavior. The children Apache processes should be run as "www-data" or "httpd" though, depending on your distro.

However, the various "php" processes that are run would run as the Virtual Server owner.


Mon, 02/24/2014 - 14:06 (Reply to #2)

Gotcha. I should have done some research. Thanks eric.

Topic locked