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 9D65F200D08 for ; Tue, 8 Aug 2017 07:47:30 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9BECE16601D; Tue, 8 Aug 2017 05:47:30 +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 BD49F166020 for ; Tue, 8 Aug 2017 07:47:29 +0200 (CEST) Received: (qmail 79634 invoked by uid 500); 8 Aug 2017 05:47:17 -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 79555 invoked by uid 99); 8 Aug 2017 05:47:17 -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; Tue, 08 Aug 2017 05:47:17 +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 5DCFCC0AFB for ; Tue, 8 Aug 2017 05:47:17 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -2.4 X-Spam-Level: X-Spam-Status: No, score=-2.4 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=noa.gr 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 pUziiaZxTXsC for ; Tue, 8 Aug 2017 05:47:12 +0000 (UTC) Received: from vmail.noa.gr (vmail.noa.gr [195.251.204.235]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 7E9235FBEA for ; Tue, 8 Aug 2017 05:47:11 +0000 (UTC) Received: from [195.251.202.163] (admin3.astro.noa.gr [195.251.202.163]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by vmail.noa.gr (NOA Mail Srv XAPITI XPICTOY) with ESMTPSA id 8A242C4D7E5 for ; Tue, 8 Aug 2017 08:47:10 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=noa.gr; s=default; t=1502171230; bh=/iecFz0J01lpeP7QTimv44oxg3ZMLLtByzHIVpLE9pM=; h=From:Subject:To:Date; b=hzNrNu0Nvz+Iei4TtZOKC5ZWBMP7ZHEJDcOwefwKW8NS6zzosnD4HDWzPwF9qWF84 BNc9TWmcSg4WAhpR6LPfdZmPUpnrzoEgUlGBNYrXVzxDQMWGtoobzejmOfMmEHcoi5 9NesrTZmUlI7qCzflBGJa7t3LOZmnXsdu5GyqgC8= From: Nikolaos Milas Organization: National Observatory of Athens To: users@httpd.apache.org Message-ID: <45d180c0-2637-720f-ed84-2eab9a8b3cf4@noa.gr> Date: Tue, 8 Aug 2017 08:47:10 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Subject: [users@httpd] Cannot troubleshoot php-fpm with apache archived-at: Tue, 08 Aug 2017 05:47:30 -0000 Hello, I am running httpd-2.4.6-45.el7.centos.x86_64 with php-fpm-7.0.22-1.el7.remi.x86_64 (on CentOS 7). My main problem: On this httpd server I have several vhosts running, but apparently I am facing intermittent problems with php-fpm communication on only one of them. Most of the sites are WordPress or Joomla Applications (running with mysql). Everythings seems right: low load, all websites are operating fine, except this one, but only intermittently. The secondary problem is that I can't seem to be able to log php errors. When the problem starts, the users receive "503 Service Unavailable" pages for many hours/days, and in the error log I see only such errors: [Tue Aug 08 08:27:31.742640 2017] [proxy_fcgi:debug] [pid 29259] mod_proxy_fcgi.c(963): [client 180.76.15.139:30619] AH01076: url: fcgi://127.0.0.1:9000/var/webs/wwwgreekgeo/www/wp/index.php proxyname: (null) proxyport: 0 [Tue Aug 08 08:27:31.742642 2017] [proxy_fcgi:debug] [pid 29259] mod_proxy_fcgi.c(970): [client 180.76.15.139:30619] AH01078: serving URL fcgi://127.0.0.1:9000/var/webs/wwwgreekgeo/www/wp/index.php [Tue Aug 08 08:27:31.742645 2017] [proxy:debug] [pid 29259] proxy_util.c(2203): AH00942: FCGI: has acquired connection for (*) [Tue Aug 08 08:27:31.742661 2017] [proxy:debug] [pid 29259] proxy_util.c(2256): [client 180.76.15.139:30619] AH00944: connecting fcgi://127.0.0.1:9000/var/webs/wwwgreekgeo/www/wp/index.php to 127.0.0.1:9000 [Tue Aug 08 08:27:31.742690 2017] [proxy:debug] [pid 29259] proxy_util.c(2422): [client 180.76.15.139:30619] AH00947: connected /var/webs/wwwgreekgeo/www/wp/index.php to 127.0.0.1:9000 [Tue Aug 08 08:27:31.742739 2017] [proxy:debug] [pid 29259] proxy_util.c(2798): AH02824: FCGI: connection established with 127.0.0.1:9000 (*) [Tue Aug 08 08:27:52.347960 2017] [proxy_fcgi:error] [pid 29259] (104)Connection reset by peer: [client 180.76.15.139:30619] AH01075: Error dispatching request to : [Tue Aug 08 08:27:52.348021 2017] [proxy:debug] [pid 29259] proxy_util.c(2218): AH00943: FCGI: has released connection for (*) The problem is NOT resolved by restarting apache and/or php-fpm. The config of the vhost is as follows: DocumentRoot "/var/webs/wwwgreekgeo/www" ServerName www.greekgeo.noa.gr ServerAdmin webmaster@noa.gr DirectoryIndex index.php index.html index.htm php_flag log_errors on php_flag display_errors off php_value error_log /var/webs/wwwgreekgeo/log/php_error_log # php_value error_reporting 32767 # php_value error_reporting 2147483647 php_value error_reporting 6135 Redirect 301 /en.index.html http://www.greekgeo.noa.gr/wp/ RewriteEngine on RedirectMatch ^/index.html$ /wp/ Options -Indexes +FollowSymLinks AllowOverride All Require all granted Require all denied SetHandler "proxy:fcgi://127.0.0.1:9000" ErrorLog /var/webs/wwwgreekgeo/log/error_log LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" combined CustomLog /var/webs/wwwgreekgeo/log/access_log combined LogLevel debug As you can see, I have made efforts to enable php debugging, but I still can't see any php logging, in any php log: /var/log/php-fpm/error.log /var/log/php-fpm/www-error.log The file: /var/webs/wwwgreekgeo/log/php_error_log remains empty I've also followed these directions to enable Wordpress php logging: https://codex.wordpress.org/WP_DEBUG but I didn't get any php logging either. Please advise: How can I enable full php logging and troubleshoot php on this vhost? Also: What would you advise, if possible, on the particular problem (php processing hanging on this vhost only without any obvious reason)? I've googled and tried many things for several hours, but I can't find a solution. Thanks in advance, Nick --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org