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 5DB87200C84 for ; Mon, 15 May 2017 06:04:34 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5C2CA160BCC; Mon, 15 May 2017 04:04:34 +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 A297A160BB7 for ; Mon, 15 May 2017 06:04:33 +0200 (CEST) Received: (qmail 74440 invoked by uid 500); 15 May 2017 04:04:32 -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 74384 invoked by uid 99); 15 May 2017 04:04:31 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 May 2017 04:04:31 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 6A20A1AF8C7 for ; Mon, 15 May 2017 04:04:31 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.8 X-Spam-Level: X-Spam-Status: No, score=0.8 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id TEJBPJ8DxTrC for ; Mon, 15 May 2017 04:04:30 +0000 (UTC) Received: from iliffe.ca (coaxpublications.ca [206.248.138.118]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id A0A5B5FDCD for ; Mon, 15 May 2017 04:04:29 +0000 (UTC) X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=192.168.1.10; Received: from wkstn01.iliffe.ca (unverified [192.168.1.10]) by iliffe.ca (SurgeMail 7.2i) with ESMTP (TLS) id 216-1327802 for ; Mon, 15 May 2017 00:04:29 -0400 From: John Iliffe To: users@httpd.apache.org Date: Mon, 15 May 2017 00:14:47 -0400 User-Agent: KMail/1.13.3 (Linux/2.6.33.7-desktop-2mnb; KDE/4.4.3; x86_64; ; ) References: <201705131543.08706.john.iliffe@iliffe.ca> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201705150014.47753.john.iliffe@iliffe.ca> X-Authenticated-User: john.iliffe@iliffe.ca Subject: Re: [users@httpd] Getting PHP-FPM working archived-at: Mon, 15 May 2017 04:04:34 -0000 Browser: No Input File Specified --------------------------------------- Apache access Log 206.248.138.118 - - [14/May/2017:23:58:23 -0400] "GET /info HTTP/1.1" 404 25 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0" --------------------------------------- Apache error log [Sun May 14 23:58:23.049153 2017] [proxy_fcgi:error] [pid 867:tid 140553157863168] [client 206.248.138.118:57741] AH01071: Got error 'Unable to open primary script: /httpd/iliffe/i_phpinfo.php (No such file or directory)\n' --------------------------------------- php-fpm log [14-May-2017 23:58:23] WARNING: [pool www] child 7552 said into stderr: "ERROR: Unable to open primary script: /httpd/iliffe/i_phpinfo.php (No such file or directory)" ---------------------------------------- php www pool conf file ; Chroot to this directory at the start. This value must be defined as an ; absolute path. When this value is not set, chroot is not used. ; Note: you can prefix with '$prefix' to chroot to the pool prefix or one ; of its subdirectories. If the pool prefix is not set, the global prefix ; will be used instead. ; Note: chrooting is a great security feature and should be used whenever ; possible. However, all PHP paths will be relative to the chroot ; (error_log, sessions.save_path, ...). ; Default Value: not set chroot = / ; Chdir to this directory at the start. ; Note: relative path can be used. ; Default Value: current directory or / when chroot ;chdir = /var/www ;chdir = /httpd/iliffe John =========================================== On Sunday 14 May 2017 17:55:41 Daniel wrote: > The fpm pool, which chdir/chroot values they have? if they do, set > chroot to "/" and comment chdir and try again, just in case. > > 2017-05-14 17:42 GMT+02:00 Eric Covener : > > On Sat, May 13, 2017 at 11:01 PM, John Iliffe > > > > wrote: > > > Sure: > > > > > > ---------------------- > > > # namei -m /httpd/iliffe/i_phpinfo.php > > > f: /httpd/iliffe/i_phpinfo.php > > > > > > dr-xr-xr-x / > > > drwxr-xr-x httpd > > > drwxr-xr-x iliffe > > > -rw-r--r-- i_phpinfo.php > > > > > > ---------------------- > > > > There's something odd about that code/logging (no parameter on the > > open call repesenting the name!) Can you strace the FPM process and > > see what it actually tries to open? > > > > --------------------------------------------------------------------- > > 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