LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 10-22-2005, 03:54 PM   #1
nanjil
Member
 
Registered: Jul 2005
Posts: 70

Rep: Reputation: 15
setting up public_html directories


hello:

I am trying to set up apache2 server support for public_html directories for users in suse 10.
I have verified that the httpd has mod_userdir.conf included.

I still get teh dreaded
error 403: forbidden access.
I have the checked permissions. They seem to be ok too.

the server is refusing to read the index.html in the user public_html directory for some reason

any ideas?

thanx
 
Old 10-23-2005, 09:56 AM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
This is almost always a file-permissions issue, either in the public_html directory, or the parent directory, both of which must be readable and executable to the user that apache runs as (usually something like the noone user).

To test this, type su - and type the root password. Then type:
Code:
su noone # (or whoever the apache daemon runs as)
less /home/user/public_html/index.html
If you get a "permission-denied" error, then it's file permissions. Try to ls the public_html directory, and then the user directory, and work your way up until you find the problem.

Also, take a look in /var/log/httpd/error_log and access_log, to see if that sheds any light.
 
Old 10-23-2005, 02:11 PM   #3
nanjil
Member
 
Registered: Jul 2005
Posts: 70

Original Poster
Rep: Reputation: 15
I found out that the mod_userdir.conf was not included even thought yast said it was enabled. So I added a icnlude mod_userdir.conf in httpd.conf and everything works

my next project is to make samba run smoothly and finally set up the bix as a software development platform

thanx
 
  


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
Apache Root/Home Directory and setting up FTP for home directories? Mankind75 Linux - Newbie 6 07-23-2006 02:37 PM
umask and public_html super-momo Linux - General 5 06-12-2004 01:37 AM
setting up VSFTP for individual users and directories filch Linux - Software 0 05-12-2004 11:35 PM
Samba and public_html directories MurrayL Linux - Software 1 04-29-2004 06:00 AM
Cgi for public_html Drogo Linux - Software 2 05-29-2003 04:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 02:22 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