0

hi...I am running rhel5.4.

I have enable UserDir in apache and get the forbidden error while trying to access http://localhost/~lanor

I have set set permission for user Lanor 711 for home dir "lanor" and 755 for "public_html"

Is it that I have to set the above permission for the user apache?.


Even if I set permission 777 for both the directories, I still get the forbidden error message.

Help Please!!

3
Contributors
6
Replies
7
Views
7 Years
Discussion Span
Last Post by Lanor
0

I have tried the same in Redhat 9 in a virtual environment @ my university lab and it works fine, I am able to access it from actual hosts as well....

I am just trying it out on my laptop with rhel5.4

httpd.conf(virtual host section)

<VirtualHost 10.0.0.1>

ServerName ghost

DirectoryIndex index.html index.htm index.shtml

</VirtualHost>

0

public_html exists in home directory...I just don't get why permission is denied.

Like I said...Works for Redhat 9 but does not for rhel5.4..

Anyway..I give up...am thinking of doing a fresh installation....

Thanx guys for your replies....

0

You have to add the Directive DocumentRoot inside your virtual host tag along with other directives

<VirtualHost 10.0.0.1>

DocumentRoot /home/<path-to-public_html>/public_html

</VirtualHost>


then # /etc/init.d/httpd restart

Edited by jino: n/a

0

Thanks alot...you solved my problem.
I searched days for answers and u just solved it.

thanks

You have to add the Directive DocumentRoot inside your virtual host tag along with other directives

<VirtualHost 10.0.0.1>

DocumentRoot /home/<path-to-public_html>/public_html

</VirtualHost>


then # /etc/init.d/httpd restart

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.