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 4CB1B200D08 for ; Thu, 7 Sep 2017 00:51:57 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4B35A16128F; Wed, 6 Sep 2017 22:51:57 +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 917CA1609E3 for ; Thu, 7 Sep 2017 00:51:56 +0200 (CEST) Received: (qmail 20943 invoked by uid 500); 6 Sep 2017 22:51:54 -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 20933 invoked by uid 99); 6 Sep 2017 22:51:54 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Sep 2017 22:51:54 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id BF94BD73AA for ; Wed, 6 Sep 2017 22:51:53 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.448 X-Spam-Level: * X-Spam-Status: No, score=1.448 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=mail.ru Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id osyozlnujkqp for ; Wed, 6 Sep 2017 22:51:48 +0000 (UTC) Received: from smtp36.i.mail.ru (smtp36.i.mail.ru [94.100.177.96]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id C41745F569 for ; Wed, 6 Sep 2017 22:51:47 +0000 (UTC) Received: by smtp36.i.mail.ru with esmtpa (envelope-from ) id 1dpjAa-0004iL-NU for users@httpd.apache.org; Thu, 07 Sep 2017 01:51:41 +0300 To: users@httpd.apache.org From: =?UTF-8?B?0JDQvdCw0YLQvtC70LjQuSDQmtC40YDRgdCw0L3QvtCy?= Message-ID: <5371d458-7568-5376-88b5-5d84de1555a7@mail.ru> Date: Thu, 7 Sep 2017 01:51:39 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="------------99DD01A711B42E4A97A463A5" Authentication-Results: smtp36.i.mail.ru; auth=pass smtp.auth=kiav1976@mail.ru smtp.mailfrom=kiav1976@mail.ru X-7FA49CB5: 0D63561A33F958A53631C729DFA3C86667E6F0366A06F0FC9E088B6041E4845C725E5C173C3A84C3A2CE164612F1211F5A25C8956E4F5D441CE60B8040019C36C4224003CC836476C0CAF46E325F83A50BF2EBBBDD9D6B0F2AF38021CC9F462D574AF45C6390F7469DAA53EE0834AAEE X-Mailru-Sender: 194642DAC543D50BBBD3723253314BFCB3A2E965420A991D4290F94B51CCB0BB1B155545B1CDE02F91F79CD920577EA43DDE9B364B0DF28996C99CE48647ECC52CA1F4C27F84AF43AE208404248635DF X-Mras: OK Subject: [users@httpd] Why Apache does not save some records to error log archived-at: Wed, 06 Sep 2017 22:51:57 -0000 --------------99DD01A711B42E4A97A463A5 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit I am not sure what is the reason of my problem. In some cases my PHP script successfully saves data in it's own (script's) log. But there is no corresponding record in Apache access log. Why? The error log is empty. * mod_fcgid/2.3.9 Apache/2.4.6 (CentOS) PHP 7.1.3 Apache config* ... CustomLog /var/www/httpd-logs/example.com.access.log combined ErrorLog /var/www/httpd-logs/example.com.error.log ... SetHandler fcgid-script FCGIWrapper /var/www/php-bin-isp-php71/user/php ... *PHP 7.1 config* error_log empty (not set) log_errors on error_reporting E_CORE_ERROR | E_ERROR | E_COMPILE_ERROR | E_PARSE --------------99DD01A711B42E4A97A463A5 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit I am not sure what is the reason of my problem. In some cases my PHP script successfully saves data in it's own (script's) log. But there is no corresponding record in Apache access log.
Why?

The error log is empty.

mod_fcgid/2.3.9
Apache/2.4.6 (CentOS)
PHP 7.1.3

Apache config

<VirtualHost 127.0.0.1:8080>
    ...
        CustomLog /var/www/httpd-logs/example.com.access.log combined
        ErrorLog /var/www/httpd-logs/example.com.error.log
     ...
        <FilesMatch "\.ph(p[3-5]?|tml)$">
                SetHandler fcgid-script
                FCGIWrapper /var/www/php-bin-isp-php71/user/php
        </FilesMatch>
    ...
</VirtualHost>

PHP 7.1 config
error_log empty (not set)
log_errors on
error_reporting E_CORE_ERROR | E_ERROR | E_COMPILE_ERROR | E_PARSE

--------------99DD01A711B42E4A97A463A5--