View Full Version : What causes occasional Internal Server Error?
Chiessa
12-05-2000, 09:55 PM
I'm not talking about an error due to misconfigurations.[nbsp][nbsp]I thought my script is running perfectly but when I check my cgi log, I find out that it returns an "Internal Server Error" once in a while - admittedly quite rare though.[nbsp][nbsp]What is causing it?[nbsp][nbsp]Is there a remedy?
Terra
12-05-2000, 10:08 PM
If you are not 100% fool proof on your error checking, then possible rogue input is causing your script to keel over without making a full run...
You will need to isolate all points of failure in your program and write routines to capture every conceivable error with a fallout routine which posts up a message telling the visitor that there was a problem...[nbsp][nbsp]As a side effect, you should also maintain your own debugging log so that your error routine can log why it died...
Error checking is one of the most labor intensive parts of programming, and is the #1 form of coding that is most likely to be glossed over...
--
Terra
--Nothing wrong with lazy programming, but only in it's purest form--
FutureQuest
Chiessa
12-06-2000, 01:44 AM
I've learnt by experience from elsewhere that when the Apache server isn't properly configured, CGI scripts would run wild when server loads become heavy.[nbsp][nbsp]Of course I wouldn't suspect it here, since I truly believe that the sys admins here are of the highest caliber.[nbsp][nbsp]:)[nbsp][nbsp]Just that I thought there might be some server fine tuning going on.[nbsp][nbsp]Thanks for telling me unequivocally that if I want a scapegoat to blame for the error, I should just look into the mirror.[nbsp][nbsp];)[nbsp][nbsp] Time to dig into my script again.
vBulletin® v3.6.8, Copyright ©2000-2012, Jelsoft Enterprises Ltd.