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!!

can you post the virtual host from your conf file?

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>

doc root missing?

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....

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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.