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 9E70B2009DC for ; Tue, 2 May 2017 17:24:21 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9CD59160BA1; Tue, 2 May 2017 15:24:21 +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 BB9DA160B9B for ; Tue, 2 May 2017 17:24:20 +0200 (CEST) Received: (qmail 48572 invoked by uid 500); 2 May 2017 15:24:19 -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 48557 invoked by uid 99); 2 May 2017 15:24:19 -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, 02 May 2017 15:24:19 +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 0C310C1367 for ; Tue, 2 May 2017 15:24:19 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.28 X-Spam-Level: * X-Spam-Status: No, score=1.28 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled 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 gDPNrQvvT-Pf for ; Tue, 2 May 2017 15:24:16 +0000 (UTC) Received: from omr-a018e.mx.aol.com (omr-a018e.mx.aol.com [204.29.186.64]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id A3B3760DC6 for ; Tue, 2 May 2017 14:41:38 +0000 (UTC) Received: from mtaout-aaf01.mx.aol.com (mtaout-aaf01.mx.aol.com [172.26.127.97]) by omr-a018e.mx.aol.com (Outbound Mail Relay) with ESMTP id A7C86380008C for ; Tue, 2 May 2017 10:41:31 -0400 (EDT) Received: from Portable (Portable [47.148.234.227]) by mtaout-aaf01.mx.aol.com (MUA/Third Party Client Interface) with ESMTPA id 21FFC3800008C for ; Tue, 2 May 2017 10:41:31 -0400 (EDT) From: "Arthur E. Johnston" To: References: <201704301456.19025.john.iliffe@iliffe.ca> <201705012253.15599.john.iliffe@iliffe.ca> <000401d2c2f2$b72cdad0$25869070$@verizon.net> <201705021025.10352.john.iliffe@iliffe.ca> In-Reply-To: <201705021025.10352.john.iliffe@iliffe.ca> Date: Tue, 2 May 2017 07:41:29 -0700 Message-ID: <001f01d2c352$2ff118f0$8fd34ad0$@verizon.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 15.0 Thread-index: AQKwqzukw4Z77za2hl0MkcO68/cDrAIfCChpAlGFNusBDAXVIp/5Z38Q Content-Language: en-us x-aol-global-disposition: G x-aol-sid: 3039ac1a7f6159089a9b770b X-AOL-IP: 47.148.234.227 Subject: RE: [users@httpd] Unstable PHP under Apache archived-at: Tue, 02 May 2017 15:24:21 -0000 With your current configuration, PHP is not operating. If PHP was operating you would (or should) have an entry in a PHP.log. My suggestion is to eliminate your current PHP installation and use the default installation available with your operating system. After PHP is operating, perform the modifications you desire. Somewhere, in this chain you mentioned you did not use the method of installing PHP that was available with your operating system, because it would update PHP without allowing you control. Rather than modifying the standard installation of PHP, modify the actions of the program that updates your operating system. Arthur Johnston Meadowbrook Kennels -----Original Message----- From: John Iliffe [mailto:john.iliffe@iliffe.ca] Sent: Tuesday, May 02, 2017 7:25 AM To: users@httpd.apache.org Subject: Re: [users@httpd] Unstable PHP under Apache That's the weird thing - there nothing in the php.log and php-fpm.log has only errors originating from the batch file processing. (these are legitimate). In the Apache error log, nothing. In the Apache access log, the response is shown as 404 even though the browser displays "No Input file specified". If I deliberately change the request location to be wrong, then the browser displays the expected 404 and so does the Apache access log. The Apache error log never writes anything for this. John ================================= On Monday 01 May 2017 23:18:04 Arthur E. Johnston wrote: > What are the errors in your PHP-FPM.LOG? > > > Arthur Johnston > Meadowbrook Kennels > > -----Original Message----- > From: John Iliffe [mailto:john.iliffe@iliffe.ca] > Sent: Monday, May 01, 2017 7:53 PM > To: users@httpd.apache.org > Subject: Re: [users@httpd] Unstable PHP under Apache > > Still poking around with this and one thing seems very odd to me. > > Coded exactly as shown in the Apache docs, php is NOT invoked by a php > script. What I mean is: > > This is from the docs, as I understand them: > ----------------------------- > # Add FCGI changes > > FcgidMaxRequestsPerProcess 10000 > > Alias /phpapp/ /httpd/ > > ## > AddHandler fcgid-script .php > ## AllowOverride None > Options +ExecCGI > # Caution - if the version of Apache is updated then probably > # this wrapper script will need to be updated too > FcgidWrapper /usr/apache-2.4.25/bin/php-wrapper .php > Require all granted > # > > ## > > > ------------------------------- > Passes the apachectl -t test for syntax, but outputs only the html > portion of the page. > > This one at least invokes php > -------------------------------- > # Add FCGI changes > > FcgidMaxRequestsPerProcess 10000 > > #Alias /phpapp/ /httpd/ > # > > AddHandler fcgid-script .php > ## AllowOverride None > Options +ExecCGI > # Caution - if the version of Apache is updated then probably > # this wrapper script will need to be updated too > FcgidWrapper /usr/apache-2.4.25/bin/php-wrapper .php > Require all granted > # > > > # > > -------------------------------- > Starts php-cgi but outputs "No Input file specified". > > No error messages in http error log in either case. > > John > ================================== > > On Monday 01 May 2017 21:13:01 John Iliffe wrote: > > Thanks Arthur. > > > > That was my initial thought, that the file permissions were wrong. > > > > I just checked again and the permission on the root directory of > > this page (/httpd) is rwxr-xr-x and it is owned by root so the > > directory can be world read and descended. > > > > Same for all of the virtual host lever directories below it, so they > > are world-readable and world descendable. All of these directories > > are also owned by root, mainly to control anything being written > > over the page and script files. > > > > All of the page and script files are world readable but owned by > > their "user". For example, the phpinfo file that won't run is: > > > > -rw-r--r--. 1 John John 213 Mar 19 17:23 phpinfo.php > > > > Making this file executable doesn't do anything for the problem. It > > shouldn't but it was worth a try. > > > > As a test, I picked a file on which I don't have any permissions in > > a different virtual host and was able to cat it. So no matter what > > uid apache and mod_fcgid/php-cgi are running under should be able to > > read the script. > > > > When I try to run the script phpinfo from a fresh start of Apache, > > before the script runs there is no php-cgi shown as running. After > > attempting to run, php-cgi is running and is a child of one of the > > httpd process children. That is, httpd is under pid 10613, the > > httpd children are 10614 to 10617 with parent pid 10613, and the > > php-cgi process is pid 10780 with parent pid 10614. > > > > As a further test I modified things so that the php script was not > > treated as php and the page displays only the pure html lines in the > > script. No problems getting there. > > > > John > > ======================================== > > > > On Monday 01 May 2017 17:27:05 Arthur E. Johnston wrote: > > > I experienced similar messages when working outside of the Apache > > > directory. > > > > > > Check your permissions. > > > > > > Arthur Johnston > > > > > > Sent from my iPhone. Please excuse The typos. > > > > > > > On May 1, 2017, at 1:20 PM, John Iliffe > > > > wrote: > > > > > > > > This is set to: > > > > > > > > max_execution_time = 30 > > > > max_input_time = 60 > > > > > > > > This is the default and I would expect to run a simple phpinfo > > > > it would be adequate. > > > > > > > > I was playing further and now I have got rid of the "No Input File > > > > Specified" in favour of "Prohibited". I had this problem before > > > > while I was trying to resolve the situation. > > > > > > > > Makes me think that there is a configuration error somewhere > > > > that is affecting the security settings in Apache, but the > > > > directory has "Require All Granted" set on it and I'm not aware > > > > of any others. > > > > > > > > John > > > > ================================== > > > > > > > >> On Monday 01 May 2017 15:08:17 Arthur E. Johnston wrote: > > > >> John > > > >> > > > >> I am not near my computer right now. > > > >> > > > >> There is a setting in PHP.ini to extend the time for each > > > >> process. > > > >> > > > >> > > > >> Arthur Johnston > > > > -------------------------------------------------------------------- > > - To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > > For additional commands, e-mail: users-help@httpd.apache.org > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > For additional commands, e-mail: users-help@httpd.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > For additional commands, e-mail: users-help@httpd.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org