Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Once again, Nik, your enthusiasm is exceeding the level of care in your methodology.

First, in developing a CGI script, you surely, by now, understand that there is an error log file on your webserver that will contain a more detailed description of the problem. 500 server errors should be seen as simply a flag telling you that you ought to look at the error logs to find out why your script is failing. What is the error log telling you? We need to know to help.

Better yet, use the CGI::Carp module (documentation on how to use it is provided along with this core module). With Carp you can send the "fatals" (error messages that result in program termination) to the browser so you don't have to go digging through an error log. Then tell us what fatal message is getting sent to the browser.

Next, this being your umpteenth (ok, 23rd or so) post, and having already graced the "Worst Nodes of the Week" list a couple of times, by now you should understand that for us to help we need real, concrete specifics. If you found Abigail II's quip unhelpful consider the reason; the question was similarly unhelpful. We know nothing about your script. We know nothing about the environment in which it is running (other than the fact that it's Apache 2.0.40 for Red Hat Linux), and we don't know what mistake you made any more than you do if we aren't given better clues. Just as we can't read your mind, we can't read your server's error log for you.

You are getting this error because you've instructed the server to do something it can't. That's as much as I can tell you without more information.

Come back and tell us what the error log says. Give us an example of the code that causes the error (not the whole thing, narrow it down). Then maybe we can begin to provide suggestions that assist YOU in hunting down the problem.


Dave


"If I had my life to do over again, I'd be a plumber." -- Albert Einstein

In reply to Re: help with an error 500 messge... by davido
in thread help with an error 500 messge... by Nik

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (10)
As of 2024-04-18 16:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found