LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 03-08-2003, 12:49 AM   #1
CRego3D
Member
 
Registered: Jan 2003
Posts: 67

Rep: Reputation: 15
Apache 2.0.4 .. FORBIDDEN error


I have a Weird error

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.
 
Old 03-08-2003, 12:55 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Well, you probably don't have permission to read them..

Check your permissions on the files would be my first step.
 
Old 03-08-2003, 12:58 AM   #3
CRego3D
Member
 
Registered: Jan 2003
Posts: 67

Original Poster
Rep: Reputation: 15
I did, the files are all chmod to 755
 
Old 03-08-2003, 01:05 AM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
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 ?
 
Old 05-15-2003, 09:55 AM   #5
Ingmar
LQ Newbie
 
Registered: May 2003
Location: MD, USA
Distribution: Mandrake
Posts: 2

Rep: Reputation: 0
Question re: Apache 2.0.4 .. FORBIDDEN error

Hi,

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.

Did you find a solution to this problem ?

-Ingmar
 
Old 05-15-2003, 10:19 AM   #6
vous
Member
 
Registered: Mar 2003
Location: Macondo
Distribution: Mandrake 9.1, 10.1, SuSE 8.1 pro, 10.1, Red Hat 8.0/9.0
Posts: 380

Rep: Reputation: 30
Try this....

find what the DocumentRoot is in your httpd.conf:

should look something like this....

DocumentRoot "/xxx1/xxx2/xxx3/xxx4/xxx5"


Now make an html file:

<html>
Hello Linux!
</html>

Save it and put it here:

"/xxx1/xxx2/xxx3/xxx4/xxx5/hello.html"


Go to your browser and try a http://localhost/hello.html

What happens?
 
Old 05-15-2003, 10:44 AM   #7
Ingmar
LQ Newbie
 
Registered: May 2003
Location: MD, USA
Distribution: Mandrake
Posts: 2

Rep: Reputation: 0
Question

Hi vous,

fast reply! Thanks!

the hello.html in /var/www/html/ worked.

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 ?

-Inmgar
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error 403 Forbidden access in Apache anoop_cn Linux - Software 1 09-21-2004 09:32 AM
apache error, 403 forbidden afrodocter Linux - Software 6 08-09-2004 08:35 PM
Apache: Forbidden Error Ninja Cow Linux - Software 2 12-07-2003 12:24 PM
Apache forbidden error!!!!!!!!!!! RKris Linux - Software 5 11-24-2003 07:17 AM
apache 403 error forbidden? bulliver Linux - General 4 01-31-2003 07:47 AM


All times are GMT -5. The time now is 08:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration