Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97815 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 4800 invoked from network); 17 Jan 2017 15:36:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Jan 2017 15:36:19 -0000 Authentication-Results: pb1.pair.com header.from=dz@heroku.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=dz@heroku.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain heroku.com designates 74.125.82.45 as permitted sender) X-PHP-List-Original-Sender: dz@heroku.com X-Host-Fingerprint: 74.125.82.45 mail-wm0-f45.google.com Received: from [74.125.82.45] ([74.125.82.45:34909] helo=mail-wm0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 97/46-00729-2F93E785 for ; Tue, 17 Jan 2017 10:36:18 -0500 Received: by mail-wm0-f45.google.com with SMTP id r126so205931221wmr.0 for ; Tue, 17 Jan 2017 07:36:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heroku.com; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=frBQPE8tppK3Un0LXx2JrTkyAnPPS7+vyo/q1qdwBio=; b=k9Lwj7i+sOpP9/4teUOpii+0ap45xGpYIbFgAl9sYufWdCCWiN+yYlCtiLymy9pU7U gxRqdcOKWRt/vl3yIRxhB+rps8Lecqdfj6UyA8AEUxCQ2MPZraSEsBUk3q7xzh8hiom6 Vp+4JHXrJ24Z3zcokI0vbcRH0yfJLKEf18ebzysExam80tGj3YbAF9fLaPgC9m8nISyy xYEVtBp5IWG6SDGRjpqm19yKquLYyD8x678GdPY58aiIVe7QoKsOQHPYqRIm/Y73sUGp sLsm8s9ijhm6mY0R2gmyy+T4SQTXG41D4cqHlJv5fO9qOanMfgyXXWVdrayG7g+1CqTi uBqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=frBQPE8tppK3Un0LXx2JrTkyAnPPS7+vyo/q1qdwBio=; b=Bk8TNT0SxuhuJfskRarrOb/gHuuQprm/7WxPi3qFICaJ/RiI++brMGeWzWoQQKeQtH x1nwki8+AfTgWXi8I2340e6ZO7QIFytkeMnI4owjraKBWgkexuf3aj4sBU+UEp0gS5iP /wU82ZC/SDurFvlLS15zNjy8K8uokQNP/bw3cWXQg7M2NTyD5U0UHXX/o9tfYg/9Fx6k e1wNKNtMlL9lZmeESxRF7LVEwQ7l7fH023xv3Ii69yWXHXUaw/WESdy9phPt1mZNN4lB IY+D/9xZdl7MmJOSLB3dE3AjHXBsbKWe9ZoFtD03dFl1eYBB96Rte0cMRF7J0FM5rbct bZAw== X-Gm-Message-State: AIkVDXLIcO3T2/MkMj6OEg/OhN3IaCLiVJuRbWF2pgBKm5NBQ8M4ps02tFf1NEXx5rGVOPIY X-Received: by 10.223.162.10 with SMTP id p10mr28451682wra.160.1484667375599; Tue, 17 Jan 2017 07:36:15 -0800 (PST) Received: from [192.168.88.125] (ip5b40059c.dynamic.kabel-deutschland.de. [91.64.5.156]) by smtp.gmail.com with ESMTPSA id w18sm37773278wme.9.2017.01.17.07.36.13 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 17 Jan 2017 07:36:14 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) In-Reply-To: <05f6f309-341a-c6ea-5b78-4b60044b59ee@fedoraproject.org> Date: Tue, 17 Jan 2017 16:36:14 +0100 Cc: internals@lists.php.net Content-Transfer-Encoding: quoted-printable Message-ID: References: <3C5197D9-8CA8-49DB-A19F-444066CF2426@heroku.com> <05f6f309-341a-c6ea-5b78-4b60044b59ee@fedoraproject.org> To: Remi Collet X-Mailer: Apple Mail (2.3124) Subject: Re: [PHP-DEV] Fixing Apache mod_proxy_fcgi SCRIPT_FILENAME et al for good From: dz@heroku.com (David Zuelke) > On 17.01.2017, at 15:58, Remi Collet wrote: >=20 > Le 17/01/2017 =C3=A0 15:44, David Zuelke a =C3=A9crit : >> Hi all, >>=20 >> https://github.com/php/php-src/pull/694 and = https://github.com/php/php-src/pull/765 brought support for Apache's = "SetHandler" based mod_proxy_fcgi-to-FPM interface. >>=20 >> Recently, a change in Apache = (https://github.com/apache/httpd/commit/cab0bfbb2645bb8f689535e5e2834e2dbc= 23f5a5) broke this again, so FPM no longer works with Apache 2.4.23 and = later. >>=20 >> The HTTPD developers are interested in fixing this once and for all, = by cleaning up several inconsistencies on their side in one go. However, = that would require accompanying changes on the PHP side in all of the = FPM and FCGI SAPI's detection logic, and that needs coordinating :) >>=20 >> What's the right place for this discussion? Would somebody with the = right karma/experience be willing to sign up to = https://httpd.apache.org/lists.html#http-dev and join in? Or does a = GitHub issue or PR suffice? >=20 > Can you please describe how this is broken, > Which config / url, with expected / actual results ? See https://github.com/php/php-src/pull/694#issuecomment-267183973 ff = and = https://github.com/apache/httpd/commit/cab0bfbb2645bb8f689535e5e2834e2dbc2= 3f5a5#commitcomment-20393588 ff I should point out that right now, this does not require action on the = PHP side, as the change will be reverted for the next Apache release; I = started this discussion to address the fact that Apache and PHP/FPM are = mutually depending on specific magic/workarounds, which is not easy to = solve without some coordination :) > P.S. I'm running apache 2.4.25 and php-fpm without (noticed issue) Are you using SetHandler, or another method? SetHandler is the only one = that universally works with arbitrary .htaccess rewrites etc, unlike = ProxyPass. The issue also only arises when rewriting to e.g. an index.php David