[opensuse] Access forbidden!
HI all, I get this error when I try to use FF to access my server. Access forbidden! You don't have permission to access the requested directory. There is either no index document or the directory is read-protected. If you think this is a server error, please contact the webmaster. Error 403 warthog.de Tue Jun 12 15:15:36 2012 Apache/2.2.21 (Linux/SUSE) ############################# I think that its a permissions problem. But I'm not sure what to do. Can someone give me a clue? Thanks, JIM -- Check out my stamp & postcard collection! Yankee GO HOME! Anti-US Propaganda on stamps, postcards, envelopes, and labels http://yankeegohome.18-t.com/ Check out my online Delcampe store http://www.delcampe.net/stores/warthogbulletin -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
James Hatridge wrote:
HI all,
I get this error when I try to use FF to access my server.
Access forbidden!
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.
If you think this is a server error, please contact the webmaster. Error 403 warthog.de Tue Jun 12 15:15:36 2012 Apache/2.2.21 (Linux/SUSE)
#############################
I think that its a permissions problem. But I'm not sure what to do. Can someone give me a clue?
Look up your virtual host definition - you should have a <directory>
sectioncovering your htdocs directory. This section could look like
this:
On Tue, 12 Jun 2012 15:18 +0200
James Hatridge
HI all,
I get this error when I try to use FF to access my server.
Access forbidden!
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.
If you think this is a server error, please contact the webmaster. Error 403 warthog.de Tue Jun 12 15:15:36 2012 Apache/2.2.21 (Linux/SUSE)
#############################
I think that its a permissions problem. But I'm not sure what to do. Can someone give me a clue?
Thanks,
JIM
Per has already answered this but, just for clarification, Apache is set by default as a security precaution to not list the contents of empty directories (includes '../ parent directory'). Check your document root is set properly and that the directory is not empty. regards, Carl -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Carl Hartung wrote:
On Tue, 12 Jun 2012 15:18 +0200 James Hatridge
wrote: HI all,
I get this error when I try to use FF to access my server.
Access forbidden!
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.
If you think this is a server error, please contact the webmaster. Error 403 warthog.de Tue Jun 12 15:15:36 2012 Apache/2.2.21 (Linux/SUSE)
#############################
I think that its a permissions problem. But I'm not sure what to do. Can someone give me a clue?
Thanks,
JIM
Per has already answered this but, just for clarification, Apache is set by default as a security precaution to not list the contents of empty directories (includes '../ parent directory'). Check your document root is set properly and that the directory is not empty.
Good point Carl - if the document root does not have an index file (e.g. index.html), permission will also be denied. -- Per Jessen, Zürich (13.5°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
HI all! OK, I've been diging around and I'm mixed up here. When I use "warthog/" or "warthog.de" I get the 403 error. But "localhost/~warthog/" gets to the index.php file. So I am guessing that my host file is still messed up. The file looks like this: 127.0.0.1 localhost # special IPv6 addresses ::1 localhost ipv6-localhost ipv6-loopback fe00::0 ipv6-localnet ff00::0 ipv6-mcastprefix ff02::1 ipv6-allnodes ff02::2 ipv6-allrouters ff02::3 ipv6-allhosts 192.168.178.21 warthog.de warthog ############ Ideas? Thanks! JIM On Tuesday, June 12, 2012 04:04:00 PM Per Jessen wrote:
Carl Hartung wrote:
On Tue, 12 Jun 2012 15:18 +0200
James Hatridge
wrote: HI all,
I get this error when I try to use FF to access my server.
Access forbidden!
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.
If you think this is a server error, please contact the webmaster. Error 403 warthog.de Tue Jun 12 15:15:36 2012 Apache/2.2.21 (Linux/SUSE)
#############################
I think that its a permissions problem. But I'm not sure what to do. Can someone give me a clue?
Thanks,
JIM
Per has already answered this but, just for clarification, Apache is set by default as a security precaution to not list the contents of empty directories (includes '../ parent directory'). Check your document root is set properly and that the directory is not empty.
Good point Carl - if the document root does not have an index file (e.g. index.html), permission will also be denied. -- Check out my stamp & postcard collection! Yankee GO HOME! Anti-US Propaganda on stamps, postcards, envelopes, and labels http://yankeegohome.18-t.com/
Check out my online Delcampe store http://www.delcampe.net/stores/warthogbulletin -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
James Hatridge wrote:
HI all!
OK, I've been diging around and I'm mixed up here. When I use "warthog/" or "warthog.de" I get the 403 error. But "localhost/~warthog/" gets to the index.php file. So I am guessing that my host file is still messed up.
You could have a different config for localhost. Check your apache log files (error_log in particular) to see if the 403 error is in fact coming from your local apache. -- Per Jessen, Zürich (13.8°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Tuesday, June 12, 2012 04:31:23 PM Per Jessen wrote:
James Hatridge wrote:
HI all!
OK, I've been diging around and I'm mixed up here. When I use "warthog/" or "warthog.de" I get the 403 error. But "localhost/~warthog/" gets to the index.php file. So I am guessing that my host file is still messed up.
You could have a different config for localhost.
Check your apache log files (error_log in particular) to see if the 403 error is in fact coming from your local apache.
HI Per! First of all thanks for the the help. Here is what tail shows from both access and error log. JIM warthog:/var/log/apache2 # tail error_log [Tue Jun 12 16:09:30 2012] [error] [client ::1] PHP Fatal error: require(): Failed opening required './wp-blog-header.php' (include_path='.:/usr/share/php5:/usr/share/php5/PEAR') in /home/warthog/public_html/index.php on line 17 [Tue Jun 12 16:11:03 2012] [error] [client ::1] File does not exist: /srv/www/htdocs/~warthog.de [Tue Jun 12 16:11:11 2012] [error] [client ::1] PHP Warning: require(./wp- blog-header.php): failed to open stream: No such file or directory in /home/warthog/public_html/index.php on line 17 [Tue Jun 12 16:11:11 2012] [error] [client ::1] PHP Fatal error: require(): Failed opening required './wp-blog-header.php' (include_path='.:/usr/share/php5:/usr/share/php5/PEAR') in /home/warthog/public_html/index.php on line 17 [Tue Jun 12 16:12:03 2012] [error] [client 192.168.178.21] Directory index forbidden by Options directive: /srv/www/htdocs/ [Tue Jun 12 16:15:32 2012] [error] [client 192.168.178.21] Directory index forbidden by Options directive: /srv/www/htdocs/ [Tue Jun 12 16:15:32 2012] [error] [client 192.168.178.21] File does not exist: /srv/www/htdocs/favicon.ico [Tue Jun 12 16:15:32 2012] [error] [client 192.168.178.21] File does not exist: /srv/www/htdocs/favicon.ico [Tue Jun 12 16:17:47 2012] [error] [client ::1] PHP Warning: require(./wp- blog-header.php): failed to open stream: No such file or directory in /home/warthog/public_html/index.php on line 17 [Tue Jun 12 16:17:47 2012] [error] [client ::1] PHP Fatal error: require(): Failed opening required './wp-blog-header.php' (include_path='.:/usr/share/php5:/usr/share/php5/PEAR') in /home/warthog/public_html/index.php on line 17 warthog:/var/log/apache2 # tail access_log 192.168.178.21 - - [12/Jun/2012:16:15:32 +0200] "GET / HTTP/1.1" 403 1051 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0" 192.168.178.21 - - [12/Jun/2012:16:15:32 +0200] "GET /favicon.ico HTTP/1.1" 404 1047 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0" 192.168.178.21 - - [12/Jun/2012:16:15:32 +0200] "GET /favicon.ico HTTP/1.1" 404 1047 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0" ::1 - - [12/Jun/2012:16:17:47 +0200] "GET /~warthog/ HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0" ::1 - - [12/Jun/2012:16:29:50 +0200] "GET /~warthog/ HTTP/1.1" 200 439 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0" ::1 - - [12/Jun/2012:16:29:53 +0200] "GET /~warthog/ManyEnemiesMuchHonor/ HTTP/1.1" 200 5247 "http://localhost/~warthog/" "Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0" ::1 - - [12/Jun/2012:16:30:05 +0200] "GET /~warthog/WartHogBulletin/ HTTP/1.1" 200 3645 "http://localhost/~warthog/" "Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0" ::1 - - [12/Jun/2012:16:30:45 +0200] "GET /~warthog/ HTTP/1.1" 200 469 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0" ::1 - - [12/Jun/2012:16:30:49 +0200] "GET /~warthog/ManyEnemiesMuchHonor/ HTTP/1.1" 200 5247 "http://localhost/~warthog/" "Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0" ::1 - - [12/Jun/2012:16:30:54 +0200] "GET /~warthog/WartHogBulletin/ HTTP/1.1" 200 3645 "http://localhost/~warthog/" "Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0" warthog:/var/log/apache2 # -- Check out my stamp & postcard collection! Yankee GO HOME! Anti-US Propaganda on stamps, postcards, envelopes, and labels http://yankeegohome.18-t.com/ Check out my online Delcampe store http://www.delcampe.net/stores/warthogbulletin -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
James Hatridge wrote:
On Tuesday, June 12, 2012 04:31:23 PM Per Jessen wrote:
James Hatridge wrote:
HI all!
OK, I've been diging around and I'm mixed up here. When I use "warthog/" or "warthog.de" I get the 403 error. But "localhost/~warthog/" gets to the index.php file. So I am guessing that my host file is still messed up.
You could have a different config for localhost.
Check your apache log files (error_log in particular) to see if the 403 error is in fact coming from your local apache.
HI Per!
First of all thanks for the the help. Here is what tail shows from both access and error log.
JIM
warthog:/var/log/apache2 # tail error_log [Tue Jun 12 16:09:30 2012] [error] [client ::1] PHP Fatal error: [require(): Failed opening required './wp-blog-header.php' (include_path='.:/usr/share/php5:/usr/share/php5/PEAR') in /home/warthog/public_html/index.php on line 17
That one appears to say it can't find some wordpress stuff. Because it is fatal, you probably just get a blank page.
[Tue Jun 12 16:11:03 2012] [error] [client ::1] File does not exist: /srv/www/htdocs/~warthog.de
That one is weird - the squiggly (~) in particular. The ~ is usually involved when you trying to access ~/public_html in your home-directory.
[Tue Jun 12 16:12:03 2012] [error] [client 192.168.178.21] Directory [index forbidden by Options directive: /srv/www/htdocs/
Right, this is where you tried warthog, but as there was no index file, it default to a directory listing, which is however prohibited, hence the 403. I would say your hosts file is working fine, but your apache config is a bit dodgy.
[Tue Jun 12 16:15:32 2012] [error] [client 192.168.178.21] File does [not exist: /srv/www/htdocs/favicon.ico
That is the browser trying for the default favico.
warthog:/var/log/apache2 # tail access_log 192.168.178.21 - - [12/Jun/2012:16:15:32 +0200] "GET / HTTP/1.1" 403 1051 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0" 192.168.178.21 - - [12/Jun/2012:16:15:32 +0200] "GET /favicon.ico HTTP/1.1" 404 1047 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0"
Okay, clear proof of the 403 coming from your local apache.
::1 - - [12/Jun/2012:16:17:47 +0200] "GET /~warthog/ HTTP/1.1" 500 - ::"-"
An HTTP 500 is server misconfiguration - I guess warthog is a user on your system. This could be the fatal php include problem from above. -- Per Jessen, Zürich (13.8°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (3)
-
Carl Hartung
-
James Hatridge
-
Per Jessen