Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

OT Apache insanity continues

by jepri (Parson)
on May 22, 2001 at 18:36 UTC ( [id://82232]=perlquestion: print w/replies, xml ) Need Help??

jepri has asked for the wisdom of the Perl Monks concerning the following question:

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.

Replies are listed 'Best First'.
Re: OT Apache insanity continues
by mr.nick (Chaplain) on May 22, 2001 at 18:58 UTC
    Make sure that you don't have two ErrorLog statements in your httpd.conf file ...
    grep -i errorlog /etc/httpd.conf
    (or wherever your configuration file lies). I had this problem when I had one ErrorLog directive in the global section and another one in a VirtualHost section.
Re: OT Apache insanity continues
by Odud (Pilgrim) on May 22, 2001 at 19:14 UTC
    It would be interesting to see a diff of httpd.conf from two servers. Also make sure that it really contains what you think it does - I had an interesting experience recently with a SuSE distribution where some "helpful" additions had been made to the config file. If you then followed Stas Beckman's simple start up instructions they didn't work. Hope this helps in some way.
Re: OT Apache insanity continues
by shotgunefx (Parson) on May 22, 2001 at 19:16 UTC
    First thing I would do is look at your access_log and see if the request itself is coming in twice.

    Is it somehow possible you have two different sets of Apache running? I don't think you can because it will usually die if the port is already bound but you never know.

    -Lee

    "To be civilized is to deny one's nature."

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://82232]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-19 12:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found