LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-16-2006, 02:32 AM   #1
deepwaters
LQ Newbie
 
Registered: Oct 2006
Posts: 7

Rep: Reputation: 0
need some help with apache


hi i am having trouble with my httpd (apache) i have read (redhat &fc5 bible)and did as it said in the book i can get the var/www/html/* to work but not public_html i uncommented UserDir "public_html"
and made all the file to home/user name 777 to public_html and i still get Forbidden
You don't have permission to access /~celnix/index.html on this server
where am i going wrong? i got it to work on windows 2003 webserver but -hell if i can get it to work on linux fc5 or redhat 4.3
had a few goes and changed a few things but still no go.

<Directory public_html>
Order Allow,Deny
Allow from all
</Directory>

<IfModule mod_userdir.c>
#
# UserDir is disabled by default since it can confirm the presence
# of a username on the system (depending on home directory
# permissions).
#
UserDir "enable all celnix"

#
# To enable requests to /~user/ to serve the user's public_html
# directory, use this directive instead of "UserDir disable":
#
UserDir "public_html"
am i going at it the wrong way or is there more to this permission thing?
 
Old 10-16-2006, 02:58 AM   #2
Jaqui
Member
 
Registered: Jan 2006
Location: Vancouver BC
Distribution: LFS, SLak, Gentoo, Debian
Posts: 291

Rep: Reputation: 36
Quote:
Originally Posted by deepwaters
<IfModule mod_userdir.c>
#
# UserDir is disabled by default since it can confirm the presence
# of a username on the system (depending on home directory
# permissions).
#
UserDir "enable all celnix"
so, enable all celinux would be the directory.
Quote:
Originally Posted by deepwaters
#
# To enable requests to /~user/ to serve the user's public_html
# directory, use this directive instead of "UserDir disable":
#
UserDir "public_html"
am i going at it the wrong way or is there more to this permission thing?
both userdir definitions can be a conflict, and if you use both, they have to match.
 
Old 10-16-2006, 03:25 AM   #3
deepwaters
LQ Newbie
 
Registered: Oct 2006
Posts: 7

Original Poster
Rep: Reputation: 0
hi , thank's for your comment.
i changed it to:
<Directory public_html>
Order Allow,Deny
Allow from all
</Directory>

<IfModule mod_userdir.c>
#
# UserDir is disabled by default since it can confirm the presence
# of a username on the system (depending on home directory
# permissions).
#
#UserDir "enable all celnix"

#
# To enable requests to /~user/ to serve the user's public_html
# directory, use this directive instead of "UserDir disable":
#
UserDir "public_html"
and sadly i still get the same:
Forbidden
You don't have permission to access /~celnix/index.html on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
tryed a few other things too:
<Directory /home/*/public_html>
Order Allow,Deny
Allow from all
</Directory>

<IfModule mod_userdir.c>
#
# UserDir is disabled by default since it can confirm the presence
# of a username on the system (depending on home directory
# permissions).
#
#UserDir "enable all celnix"

#
# To enable requests to /~user/ to serve the user's public_html
# directory, use this directive instead of "UserDir disable":
#
UserDir "public_html"
there must some thing else i am missing some where.

Last edited by deepwaters; 10-16-2006 at 03:32 AM.
 
Old 10-16-2006, 03:50 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
This may be a silly question, but you DID restart apache after your changes?



Cheers,
Tink
 
Old 10-16-2006, 10:16 AM   #5
deepwaters
LQ Newbie
 
Registered: Oct 2006
Posts: 7

Original Poster
Rep: Reputation: 0
Talking lol-lmao

good thinking batman , yes i did i did a service httpd stop and start,and a restart
 
Old 10-16-2006, 11:04 AM   #6
deepwaters
LQ Newbie
 
Registered: Oct 2006
Posts: 7

Original Poster
Rep: Reputation: 0
Red face there is nothing else?

there is nothing else than setting the files from root to home & users account to 777, i have an eggdrop bot and it can write to var/www/html , so i can't see why i get this
Forbidden
You don't have permission to access /~celnix/index.html on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
this should be a walk in the park.
maybe i will try turning off one of the modules
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail from Apache being rejected - Cannot route to sender apache@localhost.localdomain jimwillsher Linux - Networking 2 01-19-2006 12:41 AM
Apache 1.3.33 (debian built) and Apache SSL does not respond to the proper ports lqorg_user Linux - Networking 0 11-06-2005 04:11 PM
Strange apache trailing / problem - Slack-current, apache 1.3.33 vamp Linux - Networking 1 01-30-2005 07:28 PM
Apache Webserver 403 Forbidden Errors (User not in apache group?) Mankind75 Mandriva 4 07-08-2004 05:30 AM
apache benchmarks (apache v13 / apache v20) ; large differences between benchmarking markus1982 Linux - Software 0 02-08-2003 10:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration