View previous topic :: View next topic |
Author |
Message |
mike_c Tux's lil' helper
Joined: 09 Dec 2003 Posts: 76
|
Posted: Mon Jan 31, 2005 3:44 am Post subject: apache create account for user |
|
|
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 |
|
|
James Wells n00b
Joined: 10 Sep 2004 Posts: 57
|
Posted: Mon Jan 31, 2005 4:25 am Post subject: Re: apache create account for user |
|
|
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 |
|
|
mike_c Tux's lil' helper
Joined: 09 Dec 2003 Posts: 76
|
Posted: Mon Jan 31, 2005 4:58 am Post subject: |
|
|
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 |
|
|
|