Return-Path: X-Original-To: apmail-perl-modperl-archive@www.apache.org Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4B6DA9065 for ; Wed, 4 Apr 2012 15:53:42 +0000 (UTC) Received: (qmail 40790 invoked by uid 500); 4 Apr 2012 15:53:41 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 40761 invoked by uid 500); 4 Apr 2012 15:53:41 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 40754 invoked by uid 99); 4 Apr 2012 15:53:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Apr 2012 15:53:41 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of aw@ice-sa.com designates 212.85.38.228 as permitted sender) Received: from [212.85.38.228] (HELO tor.combios.es) (212.85.38.228) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Apr 2012 15:53:33 +0000 Received: from [192.168.245.129] (p549E0ADA.dip0.t-ipconnect.de [84.158.10.218]) by tor.combios.es (Postfix) with ESMTPA id 206A0DA079C for ; Wed, 4 Apr 2012 17:53:07 +0200 (CEST) Message-ID: <4F7C6E62.6090804@ice-sa.com> Date: Wed, 04 Apr 2012 17:53:06 +0200 From: =?ISO-8859-1?Q?Andr=E9_Warnier?= Reply-To: mod_perl list User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: mod_perl list Subject: Re: Quiet Internal Server Errors References: <4F7C6667.40004@ice-sa.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Josh Narins wrote: >>> I see a hit in the access logs. >>> >>> I get an Internal Server Error. >>> >>> And still, the error log is completely silent. This is my problem. >> Without server errors I get a bit lost. >> This seems to be a config with VirtualHosts. >> Are you sure that you're looking in the correct error logs ? >> Some errors will be in the "main" log, others in the virtual host logs. >> Also, "print STDERR" is not necessarily the best way to send an error >> to the logs, under >> mod_perl 2. > > While I am using Virtual Hosts, the PerlPostConfigHandler is defined outside any of them. > > On a positive note, when I change from "print STDERR" to open my $fh, ">>/tmp/abc" in my PostConfig handler, the file is written. > > I checked the whole machine, there are no other error logs. Do I need to set up virtual host error logs separately, and they just go to /dev/null without such configuration? > Separately from Torsten's answers, as an appendix. No, they will not just be discarded to /dev/null. The "main" part of the configuration (outside of sections), acts as a series of default values, inherited by all VirtualHosts. A /may/ override any parameter with its own value, which takes precedence. But it does not have to. Error messages may end up in the system's SYSLOG logs, depending on how the Apache startup script of your system configures things (like in /etc/init.d/apache2 or so). The imagination of Linux package creators is boundless.. Check /var/log/daemon.log and similar.