Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id BBA1F200C87 for ; Wed, 17 May 2017 17:08:02 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id BA138160BBA; Wed, 17 May 2017 15:08:02 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D9B87160BB5 for ; Wed, 17 May 2017 17:08:01 +0200 (CEST) Received: (qmail 37279 invoked by uid 500); 17 May 2017 15:08:00 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 37234 invoked by uid 99); 17 May 2017 15:07:59 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 May 2017 15:07:59 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 619AD185E72 for ; Wed, 17 May 2017 15:07:59 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.301 X-Spam-Level: X-Spam-Status: No, score=-0.301 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id fUWDtuG3aZZx for ; Wed, 17 May 2017 15:07:56 +0000 (UTC) Received: from mx1.hsr.ch (mx1.hsr.ch [152.96.36.31]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 4AE5E60D57 for ; Wed, 17 May 2017 15:07:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mx1.hsr.ch (Postfix) with ESMTP id 7617223B246E for ; Wed, 17 May 2017 17:07:50 +0200 (CEST) Received: from mx1.hsr.ch ([127.0.0.1]) by localhost (mx1.hsr.ch [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 84aAcnyicZft for ; Wed, 17 May 2017 17:07:44 +0200 (CEST) Received: from webmail.hsr.ch (unknown [152.96.21.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mx1.hsr.ch (Postfix) with ESMTPS id 6B82223B246C for ; Wed, 17 May 2017 17:07:44 +0200 (CEST) Received: from sidv0231.hsr.ch (152.96.21.229) by sidv0230.hsr.ch (152.96.21.228) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.32; Wed, 17 May 2017 17:07:44 +0200 Received: from sidv0231.hsr.ch ([152.96.21.229]) by sidv0231.hsr.ch ([152.96.21.229]) with mapi id 15.01.0669.032; Wed, 17 May 2017 17:07:44 +0200 From: KASPAR Sandro To: "users@httpd.apache.org" Thread-Topic: [users@httpd] cgi script error output logging Thread-Index: AQHSyZWknuS3GhMRdkCnUBwQq4Uam6HucMmAgABTUkKAAWaLgIAAFpSAgAAuG8SACDq7FQ== Date: Wed, 17 May 2017 15:07:44 +0000 Message-ID: <5f5d063b18dc4a449167e7c1b869cffa@hsr.ch> References: <4b6248bf-d55c-59e0-3dd3-4b0cf7754da0@ayni.com> <20170512071629.gwmz3by55aid3mf4@laura.suse.cz>,<20170512083717.54crfmdzguwke7gp@laura.suse.cz>,<1c2d8bfd4f0241cf81e14dbbaba71833@hsr.ch> In-Reply-To: <1c2d8bfd4f0241cf81e14dbbaba71833@hsr.ch> Accept-Language: en-US, de-CH Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [152.96.21.199] Content-Type: multipart/alternative; boundary="_000_5f5d063b18dc4a449167e7c1b869cffahsrch_" MIME-Version: 1.0 Subject: Re: [users@httpd] cgi script error output logging archived-at: Wed, 17 May 2017 15:08:02 -0000 --_000_5f5d063b18dc4a449167e7c1b869cffahsrch_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To make sure it is not an OS specific problem I tested the same on ubuntu 1= 6.04 with apache2.4.18 and mod_fcgid 2.3.9. Same problem there. If you have any other ideas I could try I would appreciate it. Sandro ________________________________ From: KASPAR Sandro Sent: Wednesday, May 17, 2017 3:08:18 PM To: users@httpd.apache.org Subject: Re: [users@httpd] cgi script error output logging Hi Petr, Thank you for your help. I tried your tests on [1]. I tested everything wih= t apache 2.4.25 and mod_fcgid 2.3.9 and apache 2.4.25 and mod_cgi. In both = cases I get the same behaviour. Everything sent to stderr, in this case "I = am an ERROR", is written to the apache error log without any further inform= ation. No timestamp etc. So my log looks like this: ... I am an ERROR I am an ERROR I am an ERROR [Wed May 17 14:52:22.653661 2017] [mpm_worker:notice] [pid 1274:tid 3440170= 7008] AH00295: caught SIGTERM, shutting down [Wed May 17 14:52:22.839149 2017] [mpm_worker:notice] [pid 1430:tid 3440170= 7008] AH00292: Apache/2.4.25 (FreeBSD) mod_fcgid/2.3.9 configured -- resumi= ng normal operations [Wed May 17 14:52:22.839503 2017] [core:notice] [pid 1430:tid 34401707008] = AH00094: Command line: '/usr/local/sbin/httpd -D NOHTTPACCEPT' I am an ERROR I tried this with apache default configuration, except for enabling mod_cgi= or mod_fcgid. Did you have to configure anything special to get more infor= mation on the log lines? Sandro [1] https://github.com/pgajdos/apache-rex/blob/master/mod_cgi-stderr/run.sh ________________________________ From: Petr Gajdos Sent: Friday, May 12, 2017 10:37:17 AM To: users@httpd.apache.org Subject: Re: [users@httpd] cgi script error output logging On Fri, May 12, 2017 at 09:16:29AM +0200, Petr Gajdos wrote: > Hi, > > On Thu, May 11, 2017 at 08:07:28AM +0000, KASPAR Sandro wrote: > > Hi suomi, > > > > > > Thank you for your answer. Unfortunately I am not using php-fpm but fcg= id. As > > JFYI, simple example [0] had shown that for me it does work with > mod_cgi (tested with 2.4.25). So I tried [1] also with httpd 2.4.25 and apache2-mod_fcgid 2.3.9 and it seem to work for me, if I understand correctly. The spec file %check is a bit hard to read (work in progress), but I can provide you %with minimal httpd.conf, if you wish. Petr [1] (search for APACHE MODULE TEST) https://build.opensuse.org/package/live_build_log/Apache:Modules/apache= 2-mod_fcgid/openSUSE_Tumbleweed/x86_64 > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org --_000_5f5d063b18dc4a449167e7c1b869cffahsrch_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

To make sure it is not an OS specific problem I tested the same on = ubuntu 16.04 with apache2.4.18 and mod_fcgid 2.3.9. Same problem there.&nbs= p;


If you have any other ideas I could try I would appreciate it. 


Sandro


From: KASPAR Sandro <san= dro.kaspar@hsr.ch>
Sent: Wednesday, May 17, 2017 3:08:18 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] cgi script error output logging
 


Hi Petr,


Thank you for your help. I tried your tests on [1]. I tested everything = wiht apache 2.4.25 and mod_fcgid 2.3.9 and apache 2.4.25 and mod_cgi. In bo= th cases I get the same behaviour. Everything sent to stderr, in this case = "I am an ERROR", is written to the apache error log without any further information. No timestamp etc. So my = log looks like this:


...

I am an ERROR
I am an ERROR
I am an ERROR
[Wed May 17 14:52:22.653661 2017] [mpm_worker:notice] [pid 1274:tid 34= 401707008] AH00295: caught SIGTERM, shutting down
[Wed May 17 14:52:22.839149 2017] [mpm_worker:notice] [pid 1430:tid 34= 401707008] AH00292: Apache/2.4.25 (FreeBSD) mod_fcgid/2.3.9 configured -- r= esuming normal operations
[Wed May 17 14:52:22.839503 2017] [core:notice] [pid 1430:tid 34401707= 008] AH00094: Command line: '/usr/local/sbin/httpd -D NOHTTPACCEPT'
I am an ERROR

I tried this with apache default configuration, except for enabling mo= d_cgi or mod_fcgid. Did you have to configure anything special to get more = information on the log lines?

Sandro

[1] https://github.com/pgajdos/apache-rex/blob/master/mod_cgi-stderr= /run.sh




From: Petr Gajdos <pga= jdos@suse.cz>
Sent: Friday, May 12, 2017 10:37:17 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] cgi script error output logging
 
On Fri, May 12, 2017 at 09:16:29AM +0200, Petr= Gajdos wrote:
> Hi,
>
> On Thu, May 11, 2017 at 08:07:28AM +0000, KASPAR Sandro wrote:
> > Hi suomi,
> >
> >
> > Thank you for your answer. Unfortunately I am not using php-fpm b= ut fcgid. As

> JFYI, simple example [0] had shown that for me it does work with
> mod_cgi (tested with 2.4.25).

So I tried [1] also with httpd 2.4.25 and apache2-mod_fcgid 2.3.9 and
it seem to work for me,  if I understand correctly. The spec file
%check is a bit hard to read (work in progress), but I can provide you
%with minimal httpd.conf, if you wish.

Petr

[1] (search for APACHE MODULE TEST)
    https://build.opensuse.org/package/live_build_log/Apache:Modules/apache2-mo= d_fcgid/openSUSE_Tumbleweed/x86_64
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

--_000_5f5d063b18dc4a449167e7c1b869cffahsrch_--