apache run as root?

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

apache run as root?

Hi,

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?

Thanks.

Mon, 02/24/2014 - 11:18
andreychek

Howdy,

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.

-Eric

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

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

Topic locked