httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Iliffe <>
Subject Re: [users@httpd] Changing the User Which Runs Apache
Date Thu, 08 Aug 2013 17:20:53 GMT
Apache has to start as root so it can get permission on the socket 
(presumably 80).  It then does an su to the uid it runs under.  Could be 
apache but you can have anything you want.  It does not need write or 
execute on any of the page directories just read.  They could be owned by 
you or you might just be in the same group so you can update them.

You have a LOT of options, read the docs!

Regards, and good luck

On Wednesday 07 August 2013 19:42:47 Noah Duffy wrote:
> On Aug 7, 2013, at 6:36 PM, Yehuda Katz <> wrote:
> > Check out how the default configuration of apache works on
> > Debian/Ubuntu. They run as the user www-data and have the correct
> > permissions set on the /var/www folder.
> I'm running Ubuntu Server 12.04 and just checked the default permissions
> on /var/www and the owner is actually root. Apache is run as www-data,
> however.
> The problem I'm having is knowing exactly what to do. Someone has
> already suggested not having the owner of /var/www be the same user
> that is running Apache. I'm not one to say if that is correct or not,
> but it confuses me a little more on how to make sure the directory is
> writable for any PHP I may be using.
> --
> Noah Duffy
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message