Ok, added your lines (the second ones, because the first ones won't work. Remember this script is called by a javascript AJAX-call that expects a return value to do something with. The errors would never get to the browser in this case). I performed the AJAX-request several times, some worked, some produced the error. Nonetheless the logfile was EMPTY, error.log of the webserver didn't show anything either.
Just to make one thing more than clear again: I replaced the whole script by this:
#!/usr/bin/perl
print "123test";
That was ALL. Nothing else.
Now again i called it several times, some times worked, some times "500 Internal Server Error".
Now does this REALLY mean that the script itself is broken? If so, where is this script broken?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.