What do the apache persissions need to be???

aquamanx

Registered
I have been trying to get apache to be read my user directories to share them. Anyone have asny idea what the permissions need to be so that way people can read them. I have set them even to be able to do everything read/write/execute and it still won't see them...when I type in the address it just gives me a 403 You don't have permission to access /~username on this server. Any help is appreciated..thanks...

spencer parker
 
here is my dilema I have already tried that and it still me the you don't have permission error..that i why I changed it to that to see if it would work, but no luck. any more ideas? thanks again for your help though...

spencer parker
 
everyone should get familiar with all the files in the

/private/etc
directory

specific to your problem
/private/etc/httpd/httpd.conf

controls the apache server.

make sure this line is in the file and not commented outwith a #
<b>
Include /private/etc/httpd/users
</b>
then that users/ directory should contain

user.conf
user1.conf
etc..................

the user names are your own user names

the contents of those files should be there by default, but if they are not...

at a minimum
<b>
&lt;Directory "/Users/user/Sites/"&gt;
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
&lt;/Directory&gt;
</b>

there are other examples in your httpd.conf

also make sure of these things:
<b>
#
# UserDir: The name of the directory which is appended onto a user's home
# directory if a ~user request is received.
#
&lt;IfModule mod_userdir.c&gt;
UserDir Sites
&lt;/IfModule&gt;

</b>
this indicates several things....
the lines<b>
LoadModule userdir_module libexec/httpd/mod_userdir.so</b>
and <b>
AddModule mod_userdir.c
</b>
must be present and uncommented

and in this case the UserDir is set to <b>"Sites"</b>

so when you put in a request for

<b>http://localhost/~user/</b>

you should see the contents of the index file in you Sites directory.

if you edit that file you will have to stop and restart web sharing.
 
Okay, I tried all of that and it is still giving me this error. It worked fine earlier..now it doesn't ugh...I did try one thing I think that broke it, but I thought I'd fixed it all. I did try installing apache through fink, but I went through and deleted everything I could think of that it installed..would this have of been what broke me...thanks again...

spencer
 
I know I actually forgot about mentioning it totally...I went through a forum post that showed how to get it to work with the sharing button in the system prefs and it works and also now when I do httpd -v it gives me the correct version that I have installed it is 1.3.22. It works I just can't get into the user directories. Thanks again and forgive my stupidity.

spencer parker
 
Back
Top