Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 18th November 2012, 04:57 PM
urban1 Offline
Registered User
 
Join Date: Jan 2009
Posts: 3
windows_7firefox
Internal server error, but why?

I have the KISGB php script installed in my website. It is not working at this time and I know that no one is busting the walls down to access my web site. Nevertheless, I keep getting this message (and many more like it) in the log file:
[Sun Nov 18 03:45:31 2012] [error] [client 66.249.76.78] PHP Parse error: syntax error, unexpected end of file in /home/rwarner/4warner/kisgb/index.php on line 964

The error is in response to this GET:

66.249.76.78 - - [18/Nov/2012:03:45:31 -0700] "GET /kisgb/index.php?action=view&tmp_theme=default.thm.php&tm p_lang=estonian.lang.php HTTP/1.1" 500 - "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"

Now, I understand, sort of, that a GET is a request from a spider to DOWNLOAD the module, but it apparently is trying to execute it (yes, there is an unexpected end of file).

I am getting hundreds of these requests daily (from Google and Baidu, apparently) wanting this information.

Why is Apache attempting to run the code in response to a simple (as I understand it) GET?
Is there anyway I can block these request (at least until I get the code fixed)?

Any information is gratefully accepted.

Thanks,

Bob
Reply With Quote
  #2  
Old 18th November 2012, 05:51 PM
george_toolan Offline
Registered User
 
Join Date: Dec 2006
Posts: 1,718
linuxfirefox
Re: Internal server error, but why?

You can block spiderbots with a robots.txt file like this

Code:
User-agent: *
Disallow: /
This should prevent any bot obeying the robot rules to access anything on your site.

Can you access this url without errors?

Code:
"GET /kisgb/index.php?action=view&tmp_theme=default.thm.php&tmp_lang=estonian.lang.php"
IMHO the url should end here. The rest is just commentary and would lead to parse errors if it's interpreted as part of the url.
Reply With Quote
  #3  
Old 18th November 2012, 05:55 PM
Jean Pierre Offline
Registered User
 
Join Date: Feb 2011
Posts: 73
linuxfedoraseamonkey
Re: Internal server error, but why?

Quote:
"GET /kisgb/index.php?action=view etc.
[...]
Why is Apache attempting to run the code in response to a simple (as I understand it) GET?
IMHO this is a request to execute on the server the php code whose output is the html text to send to client.
Quote:
Is there anyway I can block these request (at least until I get the code fixed)?
remove (or rename) the file /kisgb/index.php (but requests will be logged anyway).
Reply With Quote
  #4  
Old 18th November 2012, 06:57 PM
urban1 Offline
Registered User
 
Join Date: Jan 2009
Posts: 3
windows_7firefox
Re: Internal server error, but why?

Thanks, george_toolan, and the others for the quick reply. The change to the robots.txt file will let me quiet the garbage down until I can fix that index.php file.

Bob
Reply With Quote
Reply

Tags
error, internal, server

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PackageKit Error - Internal System Error KirkD Using Fedora 26 29th September 2008 12:37 AM
ushare (upnp media server) 500 internal server error stephanie.steve Using Fedora 2 13th June 2008 02:16 PM
wdg html validator 500 internal server error Wiles Using Fedora 0 15th February 2008 04:37 PM
Internal Server Error senzacionale Using Fedora 25 20th July 2005 11:13 PM


Current GMT-time: 15:38 (Saturday, 18-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat