Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I am usign RH 8.0 with Apache 2.0.40 (standard install), when I change the directory from where the pages are to be serverd (from /var/www/html to /home/user/www) I get Forbidden erros .. am I missing something ?
Forbidden
You don't have permission to access /phpinfo.php on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
Do you have php enabled to be handled by apache ? Can you post your httpd.conf file here, might help us determine your problem. And you wouldn't be trying to use the UserDirective or anything, or are you just specifying the new location of the base root directory ?
I got he same error when trying to access a plain index.html file.
I was trying http://myIP/mydir and my dir was not found
then I edited commonhttpd.conf to include an alias for /mydir to /usr/local/mydir
After that http://myIP/mydir was found, but I got the same permission denied error. I also have all file permissions set to 755.
after that I copied it to /usr/local/mydir/ and made a symbolic link at /var/www/html/ mydir -> /usr/local/mydir/
after that http://localhost/mydir/hello.html also worked.
I looked into my index.html file. It actually contains a call to a cgi script: <head> <meta http-equiv="Refresh" content="0; URL=cvsqueryform.cgi"></head>
So I guess the error comes from not allowing cgi scripts to executre in that directory. How do I enable them ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.