[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Apache Web Server question



On Fri, Jun 30, 2000 at 08:08:14PM -0700, kmself@ix.netcom.com wrote:
> On Fri, Jun 30, 2000 at 07:55:38PM -0700, Jay Kelly wrote:
> > Hello Group,
> > Im running apache and have /var/www as the root directory. I wanted
> > to add another folder so I added var/www/file and when I try to 
> > access html from the directory I get access denied. I looked in 
> > the apachpe error.log and see Permission denied: file permission deny
> > server access: /var/www/files/download.htm.
> > 
> > So how do I add folders and set the permission to allow web access? 
> > thanks Jay
> 
> Directories must have read and execute permissions for user "www-data"
> (world read/execute if not owned by www-data or not with a www-data
> group's permissions).  Files must be readable by www-data.  CGI scripts
> must be executable by www-data.
> 
> ...assuming your apache server is running as user www-data.  This is the
> Debian default, YMMV.
> 
> I'd try that first.
> 
> eg:
> 
>     $ ls -ld /var/www
>     drwxr-xr-x    7 root     www-data     1024 May 30 00:38 /var/www
>         ^ ^                  ^^^^^^^^
> 
> .../var/www is set group www-data and has read and execute permissions.
> 
Should I be worried that my apache server is running under root.
When I do a ls -ld /var/www I get 
drwxr-xr-x 	3 root	root		1024 Jun 30 20:06 /var/www
And if so how can I can it???
Thanks Jay
> 
> -- 
> Karsten M. Self <kmself@ix.netcom.com>     http://www.netcom.com/~kmself
>  Evangelist, Opensales, Inc.                    http://www.opensales.org
>   What part of "Gestalt" don't you understand?   Debian GNU/Linux rocks!
>    http://gestalt-system.sourceforge.net/    K5: http://www.kuro5hin.org
> GPG fingerprint: F932 8B25 5FDD 2528 D595 DC61 3847 889F 55F2 B9B0



-- 

If Windows is the answer, then I want the problems back!                  

Powered by Debian GNU/Linux. 
http://www.debian.org
 



Reply to: