[Bug 1511414] Re: PHP-FPM incorrectly defines the SCRIPT_NAME variable when using Apache
Launchpad has imported 3 comments from the remote bug at https://bugzilla.redhat.com/show_bug.cgi?id=1248077. If you reply to an imported comment from within Launchpad, your comment will be sent to the remote bug automatically. Read more about Launchpad's inter-bugtracker facilities at https://help.launchpad.net/InterBugTracking. On 2015-07-29T14:34:45+00:00 Ward wrote: Description of problem: When using Apache + PHP_FPM, the SCRIPT_NAME variable is incorrectly set. For example, accessing "http://127.0.0.1/sample/test.php/a/b/c";, results in: ORIG_SCRIPT_NAME: SCRIPT_NAME: /sample/test.php/a/b/c ORIG_SCRIPT_FILENAME: //tmp/sample/test.php/a/b/c SCRIPT_FILENAME: //tmp/sample/test.php PATH_INFO: /a/b/c ORIG_PATH_INFO: While when using mod_php, the values are: SCRIPT_NAME: /sample/test.php SCRIPT_FILENAME: /tmp/sample/test.php PATH_INFO: /a/b/c This is a PHP bug and is fixed in PHP 5.5.18: https://bugs.php.net/bug.php?id=65641 Please backport the fix. The popular package owncloud cannot be used with apache + php-fpm because of this issue: https://github.com/owncloud/core/issues/7719 Version-Release number of selected component (if applicable): < PHP 5.5.18 How reproducible: 100% Steps to Reproduce: 1. See example above: access "http://127.0.0.1/sample/test.php/a/b/c"; with apache 2.4 and php-fpm. Actual results: ORIG_SCRIPT_NAME: SCRIPT_NAME: /sample/test.php/a/b/c ORIG_SCRIPT_FILENAME: //tmp/sample/test.php/a/b/c SCRIPT_FILENAME: //tmp/sample/test.php PATH_INFO: /a/b/c ORIG_PATH_INFO: Expected results: SCRIPT_NAME: /sample/test.php SCRIPT_FILENAME: /tmp/sample/test.php PATH_INFO: /a/b/c Reply at: https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1511414/comments/0 On 2016-03-08T07:35:11+00:00 Remi wrote: Upstream commits https://github.com/php/php-src/commit/ee275e34c8b303945945c650d4bc90dcc2ac0b17 https://github.com/php/php-src/commit/8cac75969e5abb2b6be5bbd489d851a4f9e50979 The second is for ProxyPass. Reply at: https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1511414/comments/5 On 2016-06-29T07:41:21+00:00 Remi wrote: This look like a duplicate of bug #1138563 Reply at: https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1511414/comments/6 ** Changed in: php5 (CentOS) Status: Unknown => Confirmed ** Changed in: php5 (CentOS) Importance: Unknown => Medium ** Bug watch added: github.com/owncloud/core/issues #7719 https://github.com/owncloud/core/issues/7719 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1511414 Title: PHP-FPM incorrectly defines the SCRIPT_NAME variable when using Apache To manage notifications about this bug go to: https://bugs.launchpad.net/php/+bug/1511414/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1511414] Re: PHP-FPM incorrectly defines the SCRIPT_NAME variable when using Apache
Hi, I have tested PHP 5.5.37 for a couple of weeks now, so far it has worked without issue. So if possible, please updated PHP to 5.5.38 which is the last version released by the PHP developers (not possible to request a trusty- backport since this version is not available in a later Ubuntu release). Thanks. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1511414 Title: PHP-FPM incorrectly defines the SCRIPT_NAME variable when using Apache To manage notifications about this bug go to: https://bugs.launchpad.net/php/+bug/1511414/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1511414] Re: PHP-FPM incorrectly defines the SCRIPT_NAME variable when using Apache
Okay, will check it out. Thanks. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1511414 Title: PHP-FPM incorrectly defines the SCRIPT_NAME variable when using Apache To manage notifications about this bug go to: https://bugs.launchpad.net/php/+bug/1511414/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1511414] Re: PHP-FPM incorrectly defines the SCRIPT_NAME variable when using Apache
> Could an updated PHP package be put in trusty backports? That's up to the Ubuntu backporters team. Please see https://wiki.ubuntu.com/UbuntuBackports for the procedure. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1511414 Title: PHP-FPM incorrectly defines the SCRIPT_NAME variable when using Apache To manage notifications about this bug go to: https://bugs.launchpad.net/php/+bug/1511414/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1511414] Re: PHP-FPM incorrectly defines the SCRIPT_NAME variable when using Apache
Another problem that could be fixed by updating PHP: With apache-2.4.10 (available in trusty-backports), a new method was introduced to pass files via proxy from apache to php-fpm, which solved some issues with using ProxyPassMatch available earlier. However it does not work with php-5.5.9 available in trusty and was fixed in php-5.5.17 https://github.com/php/php-src/pull/694 So I believe that PHP should be updated to 5.5.18+ in trusty-backports. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1511414 Title: PHP-FPM incorrectly defines the SCRIPT_NAME variable when using Apache To manage notifications about this bug go to: https://bugs.launchpad.net/php/+bug/1511414/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1511414] Re: PHP-FPM incorrectly defines the SCRIPT_NAME variable when using Apache
Hi Robie Basak (racb), Could an updated PHP package be put in trusty backports? That way affected users (like me) could update to the version in backports while normal users would be unaffected. Thanks. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1511414 Title: PHP-FPM incorrectly defines the SCRIPT_NAME variable when using Apache To manage notifications about this bug go to: https://bugs.launchpad.net/php/+bug/1511414/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1511414] Re: PHP-FPM incorrectly defines the SCRIPT_NAME variable when using Apache
Thanks. I'll mark Fix Released as that reflects Xenial, and Won't Fix for Trusty as that is our current conclusion. But I am open to debate on this. My concern is to not break existing users by changing behaviour on them in an update automatically recommended to them. Since the workaround is so simple I'm not sure this warrants patching in a feature flag in PHP. ** Also affects: php5 (Ubuntu Trusty) Importance: Undecided Status: New ** Changed in: php5 (Ubuntu) Status: New => Fix Released ** Changed in: php5 (Ubuntu Trusty) Status: New => Won't Fix -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1511414 Title: PHP-FPM incorrectly defines the SCRIPT_NAME variable when using Apache To manage notifications about this bug go to: https://bugs.launchpad.net/php/+bug/1511414/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1511414] Re: PHP-FPM incorrectly defines the SCRIPT_NAME variable when using Apache
thank you for the fast response. the bug was also fixed in PHP 5.6.3 so it should be fine in Xenial. this bug detains me from using ownCloud 8.x with FPM. https://github.com/owncloud/core/issues/20146 i will suggest them this workaround. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1511414 Title: PHP-FPM incorrectly defines the SCRIPT_NAME variable when using Apache To manage notifications about this bug go to: https://bugs.launchpad.net/php/+bug/1511414/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1511414] Re: PHP-FPM incorrectly defines the SCRIPT_NAME variable when using Apache
Thank you for taking the time to report this bug and helping to make Ubuntu better. The bug sounds valid to me, but note that 14.04 users may be relying on the current behaviour. So if we fix the bug, we might break those users. On the other hand, the bug is trivial to work around (just truncate PATH_INFO from the end of SCRIPT_NAME if your deployment is affected). So I am reluctant to recommend modifying a stable release to avoid breaking existing users. Feedback welcome. We should get this fixed in the development release though, if it isn't already. Does this bug affect 5.6.11+dfsg-1ubuntu3.1 in Xenial? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1511414 Title: PHP-FPM incorrectly defines the SCRIPT_NAME variable when using Apache To manage notifications about this bug go to: https://bugs.launchpad.net/php/+bug/1511414/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1511414] Re: PHP-FPM incorrectly defines the SCRIPT_NAME variable when using Apache
** Bug watch added: Red Hat Bugzilla #1248077 https://bugzilla.redhat.com/show_bug.cgi?id=1248077 ** Also affects: php5 (CentOS) via https://bugzilla.redhat.com/show_bug.cgi?id=1248077 Importance: Unknown Status: Unknown -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1511414 Title: PHP-FPM incorrectly defines the SCRIPT_NAME variable when using Apache To manage notifications about this bug go to: https://bugs.launchpad.net/php/+bug/1511414/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs