Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-20-2005, 06:55 AM
|
#1
|
LQ Newbie
Registered: Aug 2005
Location: Iran/Tehran
Distribution: Fedora core 3
Posts: 11
Rep:
|
Forbidden error in httpd
hi every body,
I would like to run apache server .
My document root is /var/www/html/
and i have a index.php file in this path: /var/www/html/cacti
when i want to see the page that put http://172.16.1.230/cacti
I envisage the forbbiden error.
I have changed the cacti mod to 755 but this problem has not been solved.
and the httpd service was running.
Please Help me.
|
|
|
10-20-2005, 07:10 AM
|
#2
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,220
|
Check your httpd.conf for the "DirectoryIndex" directive.
You have to add "index.php" and restart apache.
|
|
|
10-20-2005, 07:37 AM
|
#3
|
LQ Newbie
Registered: Aug 2005
Location: Iran/Tehran
Distribution: Fedora core 3
Posts: 11
Original Poster
Rep:
|
that 's right,
but I have added it already and restarted apache.
|
|
|
10-20-2005, 08:02 AM
|
#4
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,220
|
What happens if you give: http://172.16.1.230/cacti/index.php
Also take a look at the apache error_log to see if you find out what the problem is.
|
|
|
10-21-2005, 04:35 AM
|
#5
|
LQ Newbie
Registered: Aug 2005
Location: Iran/Tehran
Distribution: Fedora core 3
Posts: 11
Original Poster
Rep:
|
the error log:access denied
and http://172.16.1.230/cacti/index.php ,exist the same as error,Forbidden.
|
|
|
10-21-2005, 05:01 AM
|
#6
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,220
|
Is it a 401 or 403 error? Post here the relevant lines from your error_log and access_log to see what is the error number.
What happens if you put a plain index.html in that directory?
Also what distro are you using?
|
|
|
10-21-2005, 05:03 AM
|
#7
|
Senior Member
Registered: Aug 2005
Posts: 1,755
Rep:
|
What are the permissions on "/var/www/html/cacti/index.php"? What are the permissions on "/var/www/html/"? Have you used PHPs successfully on this server before?
|
|
|
10-21-2005, 04:01 PM
|
#8
|
LQ Newbie
Registered: Aug 2005
Location: Iran/Tehran
Distribution: Fedora core 3
Posts: 11
Original Poster
Rep:
|
what should i do in this respect?
do i have to do anything special about php?
I installed the php rpm on my server ,that's it.and start it with apache service.
|
|
|
10-22-2005, 02:36 AM
|
#9
|
LQ Newbie
Registered: Aug 2005
Location: Iran/Tehran
Distribution: Fedora core 3
Posts: 11
Original Poster
Rep:
|
Dear Bathory
I use Fedora Core 3 distribution,
error number is :403
the access_log errors are the following,when i try to see ttp://172.16.1.230/cacti/index.php
172.16.1.230 - - [22/Oct/2005:09:42:00 -0400] "GET /cacti/index.php HTTP/1.1" 403 414 "-" "Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20041020 Firefox/0.10.1"
172.16.1.230 - - [22/Oct/2005:09:42:00 -0400] "GET /favicon.ico HTTP/1.1" 404 287 "-" "Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20041020 Firefox/0.10.1"
~
the relevant error_log about access index.php:
[Sat Oct 22 09:29:52 2005] [error] [client 172.16.1.5] (13)Permission denied: access to /cacti/index.php denied
[Sat Oct 22 09:36:14 2005] [error] [client 172.16.1.5] (13)Permission denied: access to /cacti/index.php denied
[Sat Oct 22 09:41:54 2005] [error] [client 172.16.1.230] (13)Permission denied: access to /cacti/index.php denied
[Sat Oct 22 09:41:54 2005] [error] [client 172.16.1.230] File does not exist: /var/www/html/favicon.ico
[Sat Oct 22 09:42:00 2005] [error] [client 172.16.1.230] (13)Permission denied: access to /cacti/index.php denied
[Sat Oct 22 09:42:00 2005] [error] [client 172.16.1.230] File does not exist: /var/www/html/favicon.ico
and when I include the index.html to cacti directory ,there is not any problem and the page can be display.
|
|
|
10-22-2005, 09:23 AM
|
#10
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,220
|
Quote:
[Sat Oct 22 09:41:54 2005] [error] [client 172.16.1.230] (13)Permission denied: access to /cacti/index.php denied
[Sat Oct 22 09:41:54 2005] [error] [client 172.16.1.230] File does not exist: /var/www/html/favicon.ico
|
There's something wrong with your config since apache looks under /cacti and not under /var/www/html/cacti. Thus the 403 error. Perhaps you have something like:
|
|
|
10-24-2005, 03:35 AM
|
#11
|
LQ Newbie
Registered: Aug 2005
Location: Iran/Tehran
Distribution: Fedora core 3
Posts: 11
Original Poster
Rep:
|
Dear Bathory,
I checked the directory that is Document root :/var/www/html/
and /var/www/html/cacti is the path that i used for this software.
i think that this problem is not under /cacti ,because when i set the index.html this path there is not any problem and the page be displayed.
thanks alot.
|
|
|
10-24-2005, 04:03 AM
|
#12
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,220
|
Then it should be SELinux!!!. Read this to see what you have to do.
|
|
|
All times are GMT -5. The time now is 04:47 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|