httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott Hughes" <sc...@renshawauto.com>
Subject RE: [users@httpd] Newbie Help, Please
Date Mon, 11 Dec 2006 18:03:23 GMT
Let me try this again.  Here is my setup and what I have attempted to date:

----------------------------------------------------------------------
OS Version: CentOS 4

Web Server version: Apache/2.0.52


User's Home directory information for 'www':

ls -l

total 8
drwxrwxr-x  8 renshawautous apache 4096 Dec 10 17:55 www


Inside the 'www' directory:

ls -l
total 408
-rw-r-Sr--  1 renshawautous apache  27611 Dec 10 17:42 2005results.htm
-rw-r-Sr--  1 renshawautous apache  34539 Dec 10 17:42 about.htm
-rw-r-Sr--  1 renshawautous apache   6878 Dec 10 17:42 contact.htm
-rw-r-Sr--  1 renshawautous apache 122880 Dec 10 17:42 fanclub.doc
-rw-r-Sr--  1 renshawautous apache   5036 Dec 10 17:42 fanclub.htm
-rw-r-Sr--  1 renshawautous apache  29575 Dec 10 17:42 fanclub.pdf
-rw-r-Sr--  1 renshawautous apache   7503 Dec 10 17:42 gallery.htm
drwxr-sr-x  3 renshawautous apache   4096 Dec 10 17:44 images
-rw-r-Sr--  1 renshawautous apache   9181 Dec 10 17:44 index2.htm
-rw-r-Sr--  1 renshawautous apache   1120 Dec 10 17:44 index.htm
-rw-r-Sr--  1 renshawautous apache   5268 Dec 10 17:44 links.htm
-rw-r-Sr--  1 renshawautous apache   3594 Dec 10 17:44 merchandise.htm
drwxr-sr-x  4 renshawautous apache   4096 Dec 10 17:44 news
-rw-r-Sr--  1 renshawautous apache  10443 Dec 10 17:45 news.htm
drwxr-sr-x  3 renshawautous apache   4096 Dec 10 17:45 photos
-rw-r--r--  1 renshawautous apache   7107 Dec 10 17:54 schedule.htm
drwxr-xr-x  5 renshawautous apache   4096 Dec 10 17:55 sign
-rw-r--r--  1 renshawautous apache    249 Dec 10 17:55 site.css
-rw-r--r--  1 renshawautous apache   3757 Dec 10 17:55 team.htm
drwxr-xr-x  2 renshawautous apache   4096 Dec 10 17:55 Templates
drwxr-xr-x  3 renshawautous apache   4096 Dec 10 18:00 urchin

----------------------------------------------------------------------

I have tried the following (one at a time) from inside the user's home
directory:

chmod 775 www
chmod 744 www
chmod g+s www


I am sure that I am simply doing something wrong and am just not realizing
it.

Here is the error message I get from apache's error_log:

[Sun Dec 10 21:22:54 2006] [error] [client 64.246.165.210] (13)Permission
denied: access to /robots.txt denied, referer: http://www.whois.sc/
[Sun Dec 10 21:22:54 2006] [error] [client 64.246.165.210] (13)Permission
denied: access to / denied, referer: http://www.whois.sc/renshawauto.us
[Mon Dec 11 11:25:39 2006] [error] [client 216.206.131.114] (13)Permission
denied: access to / denied


Any suggestions would be greatly appreciated.  If anyone needs additional
information, please ask.


Thank you,

Scott


-----Original Message-----
From: Boyle Owen [mailto:Owen.Boyle@swx.com] 
Sent: Monday, December 11, 2006 1:44 AM
To: users@httpd.apache.org
Subject: RE: [users@httpd] Newbie Help, Please

A tip: stop trying to debug using the browser error message. These are
at best ambiguous. Go for the actual entry in the apache error log. That
will distinguish between a problem with the apache access coditions
(denied by server config) and a unix file permissions (permission
denied).

BTW, for serving plain files, apache only needs read-access. Since the
default mode is usually 755, apache should be able to read files
belonging to any other users.

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 


> -----Original Message-----
> From: Steve Swift [mailto:steve.j.swift@gmail.com] 
> Sent: Sunday, December 10, 2006 10:02 AM
> To: users@httpd.apache.org; scott@renshawauto.com
> Subject: Re: [users@httpd] Newbie Help, Please
> 
> The permissions for apache directories and files depend on 
> how your users are setup, especially "apache". I only know 
> redhat, where each user is initially in their own group, so 
> "apache" is in group "apache" and "steve" is in group "steve". 
> 
> The approach I took was to chgrp my document root to group 
> apache, then change the directory permissions to 2775 (the 
> "2" is SGID, which means any files/directories created below 
> your document root will inherit the "apache" group. 
> 
> This way you can chown any subdirectory/files to other 
> individual users and apache will still be able to get to everything.
> 
> 
> On 09/12/06, Scott Hughes <scott@renshawauto.com> wrote:
> 
> 	Thanks for the response Steve! 
> 	
> 	A while after I sent this message I ran across a site 
> that told me just that.  When it still didn't work, I 
> realized it was also a directory permissions issue.
> 	
> 	After working with the permissions (linux system) I was 
> able to access the pages. 
> 	
> 	Now I find that the user cannot update or create new 
> pages or directories.  I think I over-did the permissions just a bit.
> 	
> 	Anyone have any suggestions?
> 	
> 	Thank you,
> 	
> 	Scott
> 	
> 	
> 	
> 	
> 	-----Original Message----- 
> 	From: "Steve Swift" <steve.j.swift@gmail.com>
> 	Date: Sat, 9 Dec 2006 09:13:29
> 	To:users@httpd.apache.org
> 	Subject: Re: [users@httpd] Newbie Help, Please
> 	
> 	Each time you add a new place in your filesystem that 
> will be referenced by apache, such as the DocumentRoot 
> statement inside your virtual hosts blocks, you nearly always 
> have to add a <Directory> statement permitting access to that place. 
> 	For example, I have:
> 	<Directory "C:/Program Files/Apache Software 
> Foundation/Apache2.2/htdocs">
> 	Options Indexes FollowSymLinks
> 	AllowOverride None
> 	Order allow,deny
> 	Allow from all
> 	</Directory> 
> 	
> 	
> 	On 08/12/06, Scott Hughes <scott@renshawauto.com: 
> <mailto:scott@renshawauto.com> > wrote: Hello,
> 	
> 	I am attempting to set up a vhost machine using CentOS. 
> 	
> 	The issue I am having is with the user's home 
> directories (where the pages are being server for
> 	each site).Example:The user's site is
> 	www.example.com: < http://www.example.com 
> <http://www.example.com> > and they have a home directory
> 	called 'example'.Inside thier home directory is a 
> directory called 'www'.
> 	
> 	Long story short, I have added the vhost part to the 
> httpd.conf and the directory statement. I get 
> 	the message in the error log that "Permission is denied 
> for /index.htm".
> 	
> 	If anyone needs any additional information, please ask.
> 	
> 	Thank you.
> 	
> 	
> 	
> 	
> --------------------------------------------------------------------- 
> 	The official User-To-User support forum of the Apache 
> HTTP Server Project.
> 	See <URL:http://httpd.apache.org/userslist.html: < 
> http://httpd.apache.org/userslist.html 
> <http://httpd.apache.org/userslist.html> > > for more info.
> 	To unsubscribe, e-mail: 
> users-unsubscribe@httpd.apache.org: <mailto: 
> users-unsubscribe@httpd.apache.org 
> <mailto:users-unsubscribe@httpd.apache.org> >
> 	" from the digest: users-digest-unsubscribe@httpd.apache.org
> 	: <mailto: users-digest-unsubscribe@httpd.apache.org 
> <mailto:users-digest-unsubscribe@httpd.apache.org> >
> 	For additional commands, e-mail: 
> users-help@httpd.apache.org: <mailto:users-help@httpd.apache.org >
> 	
> 	
> 	
> 	
> 	--
> 	Steve Swift
> 	
> 	http://www.swiftys.org.uk: <http://www.swiftys.org.uk> 
> 
> 
> 
> 
> -- 
> Steve Swift
> http://www.swiftys.org.uk 
>
 
 
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission. If
you receive this message in error, please notify the sender urgently and
then immediately delete the message and any copies of it from your system.
Please also immediately destroy any hardcopies of the message. You must not,
directly or indirectly, use, disclose, distribute, print, or copy any part
of this message if you are not the intended recipient. The sender's company
reserves the right to monitor all e-mail communications through their
networks. Any views expressed in this message are those of the individual
sender, except where the message states otherwise and the sender is
authorised to state them to be the views of the sender's company.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message