in reply to 500 internal server error !!

Look at your servers error log, it should contain a better description than just "500".

You can also try to run your script on the command line first and see how it behaves.

Replies are listed 'Best First'.
Re^2: 500 internal server error !!
by derby (Abbot) on Aug 20, 2008 at 11:11 UTC

    moritz is correct, a simple perl -c <script|module> will find the root cause (syntax error, missing modules) for the majority (but not all) 500 errors.

    -derby
Re^2: 500 internal server error !!
by priti (Initiate) on Aug 20, 2008 at 12:00 UTC
    my error log show /tmp/sess_xxxxxx..... line 30 in filename line 30 is the PHP::Session->new() .It is throwing this error when it is not able to create the session hence 500 internal server error is coming... There is nothing else i can count on i don't know perl is difficult in this case the in-built functions are not that smooth to handle such condition either my knowledge is restricted .... i need some way to check whether session is alive or not??? how one can do this ??? Please help me to come out of it. !!!!
      Maybe you want something like this:
      my $s = eval { PHP::Session->new() }; if ($s) { # I CAN HAZ SESSION } else { # there was an error }
      Is it perl or PHP ??
      []s, HTH, Massa (κς,πμ,πλ)
      Hey, easy with the bangs. Now, what is the "....."? It is the most important part of the error message...
      []s, HTH, Massa (κς,πμ,πλ)