-
Bug
-
Resolution: Fixed
-
Minor
-
2.8.8, 2.9.2, 3.0
-
MOODLE_28_STABLE, MOODLE_29_STABLE, MOODLE_30_STABLE
-
MOODLE_28_STABLE, MOODLE_29_STABLE
-
m30_
MDL-51554_Apache_PHP-FPM_Broken_File_Serving -
Moderate
-
Long story: https://moodle.org/mod/forum/discuss.php?d=319482.
Shortly, when Apache is configured with PHP-FPM at least in a plain CentOS 7 (Apache/2.4.6 PHP/5.4.16) _SERVER["SCRIPT_NAME"] and _SERVER["PATH_INFO"] are different from those ones coming under PHP as module:
- _SERVER["SCRIPT_NAME"] contains _SERVER["PATH_INFO"]. This is kind a bug in PHP, https://bugs.php.net/bug.php?id=65641 which is fixed in 5.6.3 and 5.5.18.
- _SERVER["PATH_INFO"] is URL-encoded