View Single Post
Old 13th November 2008
lalebarde lalebarde is offline
New User
 
Join Date: Nov 2008
Posts: 6
Default

Hello anomie, robbak, J65nko,
Thanks a lot for your replies.

anomie,
Quote:
is /var/www/htdocs also your DocumentRoot?
YES
Quote:
Check filesystem permissions for /var/www/htdocs and any file it contains. Does the user httpd is running as have read access to them?
Everybody has access to DocumentRoot and read access to all its contents.
Quote:
Also, add another allow line below the one you have, because it looks like you're browsing the web server from itself.
No, the server is on x.x.x.20, the browser on x.x.x.11
Anyway, if I allow 127.0.0.1, ma browser is still forbidden.

robbak,
Quote:
When you say that you are trying to browse the server, what is the url you are going to?
http://192.168.2.20/phpinfo.php
Quote:
just check if user http can read phpinfo.php
cd /var/www/htdocs
ls -l

drwxr-xr-x 2 root Wheel bgplg
-r--r--r-- 1 root bin blowfish.jpg
-r--r--r-- 1 root bin bsd_small.gif
-r--r--r-- 1 root bin index.html
-r--r--r-- 1 root bin lock.gif
-r--r--r-- 1 root bin logo23.jpg
-r--r--r-- 1 root bin logo24.jpg
-r--r--r-- 1 root bin mod_ssl_sb.gif
-r--r--r-- 1 root bin openbsd_pb.gif
-r--r--r-- 1 root bin openbsdpower.gif
-r--r--r-- 1 root bin openssl_ics.gif
-rw-r--r-- 1 root bin phpinfo.php
-r--r--r-- 1 root bin smalltitle.gif

It looks to me everyuser has read access.

Quote:
If I do a http://localhost/test.php the following displays OK in firefox and lynx:
If I browse locally : lynx http://localhost/test.php or lynx http://localhost/index.html, it works. But from x.x.x.11, I am rejected :
Forbidden
You don't have permission to access /test.php on this server.

Quote:
Do you actually have a phpinfo.php file?
Yes, in : /var/www/htdocs, but it is empty
Reply With Quote