oh wow.. ok .. you've got it easy on one hand because you have full access.. and hard on another because you have full access.

do this instead.. vim /usr/bin/debughttp (as root)

#!/bin/sh # this is just an example #tail -f /var/log/httpd/error_log tail -f /var/log/httpd/ssl_error_log | sed 's/^.\+0.41\]\|\, referer.\ ++\.cgi\|\?rm=\w\+//g' # or just # tail -f /var/log/httpd/error_log
(you know how to set perms on that? chmod 0700, just you everything, everyone else nothing)

Open a terminal and # debughttp forget the CGI::Carp 'fatalsToBrowser' crap.. get rid of all that, get rid of the open(STDERR, '>>' .. all that.

Make sure you have the right path to your httpd error log

call the script from your browser and enjoy the wonder that is POSIX.


In reply to Re^3: a classic : 'Premature end of script headers' problem by leocharre
in thread a classic : 'Premature end of script headers' problem by hmbscully

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



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.