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.

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

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