I posted a little while ago about my problems with doubled scripts, and they have come back with a vengence. A couple of kind monks replied last time, and the responses were usually along the lines of 'why don't you post the code'.

I didn't because the code was over 500 lines and fairly involved. So I created a very simple test script to demonstrate the problem:

#!/usr/bin/perl -w use strict; use diagnostics; use CGI; my $query=new CGI; print $query->header(); print "This is a test\n"; print STDERR "This is a logfile test\n";

this produced:

==> /var/log/apache/error.log <== This is a logfile test ==> /var/log/apache/error.log <== This is a logfile test

the code copied to other servers runs fine - it's only this server. It happens in the CGI-BIN directory, in happens in a separate directory I aliased just for the purposes of this test.

If anyone with a clue about Apache reads this, please respond, it's driving me nuts.

The obvious conclusion is that apache is doing something wrong, so I fired up dselect and purged it. Upon reinstall, it still happens (I checked, there was nothing left of the config files). If this continues I'm going to go into the server room with an original copy of Debian and reformat the server. Before I do that, could someone drop me a line and let me know what I'm overlooking?

____________________
Jeremy
I didn't believe in evil until I dated it.


In reply to OT Apache insanity continues by jepri

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.