Hello ,
I am working on a website http://www.linuxvilla.com but at one stage of coding i am facing very strange problem and i am stuck completely.
Its , at page http://www.linuxvilla.com/article.php when ever you click on "read more" it will open
http://www.linuxvilla.com/blogread.php? ... s.com/feed (I had hard coded that URL for testing.)
But its showing following error
Forbidden
You don't have permission to access /blogread.php on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I checked all permissions and everything but no luck.I had used permission as 777 or 755 nothing works.
Also if i will open just http://www.linuxvilla.com/blogread.php it is showing something more strange,
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@linuxvilla.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Also all this is working perfect on my local machine.
I am getting no clue to this please help me out.
Abhishek
http://www.pagalhost.com
Starange Problem of 403 Forbidden and 500 Error on same page
Moderator: General Moderators
-
crazycoders
- Forum Contributor
- Posts: 260
- Joined: Tue Oct 28, 2008 7:48 am
- Location: Montreal, Qc, Canada
Re: Starange Problem of 403 Forbidden and 500 Error on same
Well this could be solved with a little more thorough searching, i know that some servers send back 403s and 500s when configuration errors occur but they won't show it. Do you run a PLESK based server by any chance?
I know that if the file is group-writable or other-writable, you can get thrown back errors and the file won't be executable. On these servers, you should usually use 644 as the permission flag or pages won't work.
Second thing i'd look at is the server error log, sometimes, you get much more detailed errors in there.
Keep me informed
I know that if the file is group-writable or other-writable, you can get thrown back errors and the file won't be executable. On these servers, you should usually use 644 as the permission flag or pages won't work.
Second thing i'd look at is the server error log, sometimes, you get much more detailed errors in there.
Keep me informed
Re: Starange Problem of 403 Forbidden and 500 Error on same
Yes permission was an exception but not error , fixed that.
Here is latest few errors ,
[Mon Feb 21 15:24:35 2011] [error] [client 1.23.224.74] File does not exist: /home/geekab/public_html/403.shtml, referer: http://www.linuxvilla.com/article.php
[Mon Feb 21 15:24:25 2011] [error] [client 1.23.224.74] File does not exist: /home/geekab/public_html/403.shtml, referer: http://www.linuxvilla.com/article.php
[Mon Feb 21 15:23:27 2011] [error] [client 1.23.224.74] File does not exist: /home/geekab/public_html/404.shtml, referer: http://www.linuxvilla.com/blogread.php
[Mon Feb 21 15:23:27 2011] [error] [client 1.23.224.74] File does not exist: /home/geekab/public_html/for_the_demo, referer: http://www.linuxvilla.com/blogread.php
[Mon Feb 21 15:22:08 2011] [error] [client 1.23.224.74] File does not exist: /home/geekab/public_html/403.shtml
[Mon Feb 21 15:21:19 2011] [error] [client 1.23.224.74] File does not exist: /home/geekab/public_html/403.shtml
[Mon Feb 21 15:21:17 2011] [error] [client 1.23.224.74] File does not exist: /home/geekab/public_html/403.shtml, referer: http://www.linuxvilla.com/article.php
[Mon Feb 21 15:19:05 2011] [error] [client 1.23.224.74] File does not exist: /home/geekab/public_html/403.shtml, referer: http://www.linuxvilla.com/article.php
[Mon Feb 21 15:14:06 2011] [error] [client 150.70.64.195] File does not exist: /home/geekab/public_html/403.shtml
[Mon Feb 21 15:12:58 2011] [error] [client 69.70.39.94] File does not exist: /home/geekab/public_html/403.shtml, referer: viewtopic.php?f=1&t=127886
[Mon Feb 21 15:11:53 2011] [error] [client 128.30.52.165] File does not exist: /home/geekab/public_html/500.shtml
Most important thing is , http://www.linuxvilla.com/blogread.php is working as i had hard coded the url now to the file itself , but again if i want to access this through http://www.linuxvilla.com/article.php , its that same old problem.
In article.php page , it calls a function of another file included into article.php and that function basically have link to blogread.php.
Thanks
Here is latest few errors ,
[Mon Feb 21 15:24:35 2011] [error] [client 1.23.224.74] File does not exist: /home/geekab/public_html/403.shtml, referer: http://www.linuxvilla.com/article.php
[Mon Feb 21 15:24:25 2011] [error] [client 1.23.224.74] File does not exist: /home/geekab/public_html/403.shtml, referer: http://www.linuxvilla.com/article.php
[Mon Feb 21 15:23:27 2011] [error] [client 1.23.224.74] File does not exist: /home/geekab/public_html/404.shtml, referer: http://www.linuxvilla.com/blogread.php
[Mon Feb 21 15:23:27 2011] [error] [client 1.23.224.74] File does not exist: /home/geekab/public_html/for_the_demo, referer: http://www.linuxvilla.com/blogread.php
[Mon Feb 21 15:22:08 2011] [error] [client 1.23.224.74] File does not exist: /home/geekab/public_html/403.shtml
[Mon Feb 21 15:21:19 2011] [error] [client 1.23.224.74] File does not exist: /home/geekab/public_html/403.shtml
[Mon Feb 21 15:21:17 2011] [error] [client 1.23.224.74] File does not exist: /home/geekab/public_html/403.shtml, referer: http://www.linuxvilla.com/article.php
[Mon Feb 21 15:19:05 2011] [error] [client 1.23.224.74] File does not exist: /home/geekab/public_html/403.shtml, referer: http://www.linuxvilla.com/article.php
[Mon Feb 21 15:14:06 2011] [error] [client 150.70.64.195] File does not exist: /home/geekab/public_html/403.shtml
[Mon Feb 21 15:12:58 2011] [error] [client 69.70.39.94] File does not exist: /home/geekab/public_html/403.shtml, referer: viewtopic.php?f=1&t=127886
[Mon Feb 21 15:11:53 2011] [error] [client 128.30.52.165] File does not exist: /home/geekab/public_html/500.shtml
Most important thing is , http://www.linuxvilla.com/blogread.php is working as i had hard coded the url now to the file itself , but again if i want to access this through http://www.linuxvilla.com/article.php , its that same old problem.
In article.php page , it calls a function of another file included into article.php and that function basically have link to blogread.php.
Thanks