Re: [newbie] apache public_html help needed
On Sunday 02 December 2001 09:54 pm, you wrote: I know I had set this up right on a different CPU, but I can't figure out what I'm doing wrong. For some reason I can't get my ~dherndon43/ directory to work. I'm getting a: Forbidden You don't have permission to access /~dherndon43/test.php on this server. Where are the apache permissions placed? Here;s a snippet from the apache faq, it might help. http://httpd.apache.org/docs/misc/FAQ.html#forbidden -- Why do I get a Forbidden message whenever I try to access a particular directory? This message is generally caused because either The underlying file system permissions do not allow the User/Group under which Apache is running to access the necessary files; or The Apache configuration has some access restrictions in place which forbid access to the files. You can determine which case applies to your situation by checking the error log. In the case where file system permission are at fault, remember that not only must the directory and files in question be readable, but also all parent directories must be at least searchable by the web server in order for the content to be accessible. --- Why do I get a Forbidden/You don't have permission to access / on this server message whenever I try to access my server? Search your conf/httpd.conf file for this exact string: Files ~. If you find it, that's your problem -- that particular Files container is malformed. Delete it or replace it with Files ~ ^\.ht and restart your server and things should work as expected. This error appears to be caused by a problem with the version of linuxconf distributed with Redhat 6.x. It may reappear if you use linuxconf again. If you don't find this string, check out the previous question. Matt _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
RE: [newbie] apache public_html help needed
Outstanding, thanks for the info. I will try this out when I get home tonight. -Original Message- From: Michael Viron [mailto:[EMAIL PROTECTED]] Sent: Sunday, December 02, 2001 23:18 To: [EMAIL PROTECTED] Subject: Re: [newbie] apache public_html help needed In order for apache to be able to access the directory, you must have a minimum of permissions 0711 on all directories above the 'public_html' directory. 'public_html' must be at least 0755 permission, and all files underneath need to be at least 644. (0711 == user read / write / execute, group execute, other execute 0755 == user read / write / execute, group read / execute, other read / execute 0644 == user read / write, group read, other read). If you still have problems beyond that, take a look at the error_log file under /var/log/httpd that apache uses. Michael -- Michael Viron Registered Linux User #81978 Senior Systems Administration Consultant Web Spinners, University of West Florida At 10:54 PM 12/02/2001 -0500, you wrote: I know I had set this up right on a different CPU, but I can't figure out what I'm doing wrong. For some reason I can't get my ~dherndon43/ directory to work. I'm getting a: Forbidden You don't have permission to access /~dherndon43/test.php on this server. Where are the apache permissions placed? Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
RE: [newbie] apache public_html help needed
Yes I did see that item in my httpd.conf file. I didn't realize it was malformed Thanks for this info. Here;s a snippet from the apache faq, it might help. http://httpd.apache.org/docs/misc/FAQ.html#forbidden -- Why do I get a Forbidden message whenever I try to access a particular directory? This message is generally caused because either The underlying file system permissions do not allow the User/Group under which Apache is running to access the necessary files; or The Apache configuration has some access restrictions in place which forbid access to the files. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
[newbie] apache public_html help needed
I know I had set this up right on a different CPU, but I can't figure out what I'm doing wrong. For some reason I can't get my ~dherndon43/ directory to work. I'm getting a: Forbidden You don't have permission to access /~dherndon43/test.php on this server. Where are the apache permissions placed? Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] apache public_html help needed
In order for apache to be able to access the directory, you must have a minimum of permissions 0711 on all directories above the 'public_html' directory. 'public_html' must be at least 0755 permission, and all files underneath need to be at least 644. (0711 == user read / write / execute, group execute, other execute 0755 == user read / write / execute, group read / execute, other read / execute 0644 == user read / write, group read, other read). If you still have problems beyond that, take a look at the error_log file under /var/log/httpd that apache uses. Michael -- Michael Viron Registered Linux User #81978 Senior Systems Administration Consultant Web Spinners, University of West Florida At 10:54 PM 12/02/2001 -0500, you wrote: I know I had set this up right on a different CPU, but I can't figure out what I'm doing wrong. For some reason I can't get my ~dherndon43/ directory to work. I'm getting a: Forbidden You don't have permission to access /~dherndon43/test.php on this server. Where are the apache permissions placed? Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
RE: [newbie] Apache/public_html
On Mon, 22 Nov 1999 17:53:17 -0800, Ken Wilson wrote: Are the permissions for the directories you want people to be able to access world readable? This is necessary otherwise only the owner of the parent directory will be able to see anything in it. Ken Wilson First Law of Optimisation: The speed of a non-working program is irrelevant (Steve Heller, 'Efficient C/C++ Programming') ***snip*** Hi -- This is what I thought was the problem. However, I can't find any place in either LinuxConf or the httpd.conf file where one sets the permissions or where one can change those permissions. Can you point me in that direction? Thanks. Pete Clapham Department of Biological, Geological, and Environmental Sciences Cleveland State University Cleveland, Ohio, 44115 Phone: [216] 697-4820 Fax: [216] 523-7175 EMail: [EMAIL PROTECTED]
RE: [newbie] Apache/public_html
From: Ronald A. Yacketta man chmod man chown "Pete Clapham" [EMAIL PROTECTED] on 11/23/99 08:55:50 AM Please respond to [EMAIL PROTECTED] To: "[EMAIL PROTECTED]" [EMAIL PROTECTED] cc:(bcc: Ronald A. Yacketta/958157/EKC) Subject: RE: [newbie] Apache/public_html On Mon, 22 Nov 1999 17:53:17 -0800, Ken Wilson wrote: Are the permissions for the directories you want people to be able to access world readable? This is necessary otherwise only the owner of the parent directory will be able to see anything in it. Ken Wilson First Law of Optimisation: The speed of a non-working program is irrelevant (Steve Heller, 'Efficient C/C++ Programming') ***snip*** Hi -- This is what I thought was the problem. However, I can't find any place in either LinuxConf or the httpd.conf file where one sets the permissions or where one can change those permissions. Can you point me in that direction? Thanks. Pete Clapham Department of Biological, Geological, and Environmental Sciences Cleveland State University Cleveland, Ohio, 44115 Phone: [216] 697-4820 Fax: [216] 523-7175 EMail: [EMAIL PROTECTED]
Re: [newbie] Apache/public_html
On Tue, 23 Nov 1999, Ben wrote: check your .conf file for apache. in /httpd ( i think?). there should be a line in the file the specifies what the public directory is named. Although I think public_html is the default. Also check your folder permissions. I suspect that there is some configuration step that needs to be done in order to tell the browser that the "public_html" directory is, in fact, public. Can anybody advise me what it is? the users homedir needs chmod +x, and the ~/public_html needs +rx -- MandrakeSoft http://www.mandrakesoft.com/ --Axalon
[newbie] Apache/public_html
Hi, all -- I am the one who needed to allow users to ftp various web documents to their home directories and then have them visible on the web. Several of you answered me that one should put these web documents into the public_html directory and to be sure that the UserDir public_html statement existed in the httpd.conf file. Well, I did this. Users have public_html directories on their home directories, and these directories have html stuff in them. But when I try to go to the directory, I get the "Forbidden" message. Clearly the directory exists, and there is html there. But I can't see it. I suspect that there is some configuration step that needs to be done in order to tell the browser that the "public_html" directory is, in fact, public. Can anybody advise me what it is? Thanks. Cheers, pete Pete Clapham Department of Biological, Geological, and Environmental Sciences Cleveland State University Cleveland, Ohio, 44115 Phone: [216] 697-4820 Fax: [216] 523-7175 EMail: [EMAIL PROTECTED]
RE: [newbie] Apache/public_html
Are the permissions for the directories you want people to be able to access world readable? This is necessary otherwise only the owner of the parent directory will be able to see anything in it. Ken Wilson First Law of Optimisation: The speed of a non-working program is irrelevant (Steve Heller, 'Efficient C/C++ Programming') -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Pete Clapham Sent: November 22, 1999 12:29 PM To: [EMAIL PROTECTED] Subject: [newbie] Apache/public_html Hi, all -- I am the one who needed to allow users to ftp various web documents to their home directories and then have them visible on the web. Several of you answered me that one should put these web documents into the public_html directory and to be sure that the UserDir public_html statement existed in the httpd.conf file. Well, I did this. Users have public_html directories on their home directories, and these directories have html stuff in them. But when I try to go to the directory, I get the "Forbidden" message. Clearly the directory exists, and there is html there. But I can't see it. I suspect that there is some configuration step that needs to be done in order to tell the browser that the "public_html" directory is, in fact, public. Can anybody advise me what it is? Thanks. Cheers, pete Pete Clapham Department of Biological, Geological, and Environmental Sciences Cleveland State University Cleveland, Ohio, 44115 Phone: [216] 697-4820 Fax: [216] 523-7175 EMail: [EMAIL PROTECTED]
Re: [newbie] Apache/public_html
check your .conf file for apache. in /httpd ( i think?). there should be a line in the file the specifies what the public directory is named. Although I think public_html is the default. Also check your folder permissions. I suspect that there is some configuration step that needs to be done in order to tell the browser that the "public_html" directory is, in fact, public. Can anybody advise me what it is?