> : Hello, I hope this is the right place to post this. Anyway, I am a
> : Linux enthusiast that is still learning. I installed RedHat5.0 on my
> : P75. I'm running apache and i want to be ablel to create a public_html
> : directory in my /home/user directory so that I can go to a URL such as
> : http://www.foo.com/~user and get to my personal web site. I checked
> : the srm.conf file and it says that the UserDir is set to public_html.
> : The error I get from my web browser is that permission is denied. I
> : have set the permissions on my public_html directory to 777, and have
> : granted read access to my home directory.
> OK. For one thing, set your permissions to 755 for the home directory.
> That's a LOT safer. Now, be sure to change all the files in that
> subdirectory (that you want to be seen) to 755 also. Without that, Linux
> still won't let you see them....
I definitely concur with the permissions change recommended above. If
the permissions to your home directory and public_html directory are
both 755, and the permissions to the files in your public_html directory
are all 644, and it still doesn't work, check a few things. First, make
sure that there is no .htaccess file in your public_html directory, or
if there is that it is correctly formatted. Second, make sure that
there is a file called index.html in public_html. Apache should be able
to do a directory listing index for you if index.html doesn't exist (at
least if you have it configured that way), but the configuration for
that is often goofy. If it can't perform an index in that situation, it
will return a permission denied error message. Personally, I think it
should return an internal server error message, but I didn't code it.
Anyways, look into that and see if that helps you if what Patrick said
doesn't.
--
* David Wilburn, a.k.a. "Bug"
* JMU Computer Science Student
* Boycott naugahyde! Save the naugas!