Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
apache create account for user
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
mike_c
Tux's lil' helper
Tux's lil' helper


Joined: 09 Dec 2003
Posts: 76

PostPosted: Mon Jan 31, 2005 3:44 am    Post subject: apache create account for user Reply with quote

hi

ive just installed apache and I'm having trouble with my user accounts

normally on a system when I want my user to be able to share documents i do something like

Code:

$ cd
$ cd ..
$ chmod 755 $user
$ mkdir $user/public_html
$ chmod 755 $user/public_html
$ echo hello > $user/public_html/index.html


and this then makes a webpage that the public can view

however, i did this on a recent apache build and I am getting a 403 everytime I view the users homepage

any suggestions?

Mike
Back to top
View user's profile Send private message
James Wells
n00b
n00b


Joined: 10 Sep 2004
Posts: 57

PostPosted: Mon Jan 31, 2005 4:25 am    Post subject: Re: apache create account for user Reply with quote

Greetings,
mike_c wrote:
however, i did this on a recent apache build and I am getting a 403 everytime I view the users homepage

Right off the bat, I suspect your /home directory is not world readable. Please remember that the Apache user has to have read permissions for every directory between root and the document source.

If the entire tree is world readable, you should check your Apache error.log and see if it is throwing an error elsewhere to cause this.
Back to top
View user's profile Send private message
mike_c
Tux's lil' helper
Tux's lil' helper


Joined: 09 Dec 2003
Posts: 76

PostPosted: Mon Jan 31, 2005 4:58 am    Post subject: Reply with quote

it is world readable, same error as before

i've done

Code:

# chmod 755 /home
# chmod 755 /home/$user
# chmod 755 /home/$user/public_html


error.log yields

Code:

... Directory index forbidden by rule: /home/mike/public_html
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum