Adding the following line to /etc/httpd/conf.d/php.conf
ProxyFCGISetEnvIf "true" SCRIPT_FILENAME "%{unescape:%{SCRIPT_FILENAME}}"
in
<IfModule !mod_php.c>
# Enable http authorization headers
SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
ProxyFCGISetEnvIf "true" SCRIPT_FILENAME "%{unescape:%{SCRIPT_FILENAME}}"
<FilesMatch \.(php|phar)$>
SetHandler "proxy:unix:/run/php-fpm/www.sock|
fcgi://localhost
"
</FilesMatch>
</IfModule>
solved the issue for me. Reference: PHP-FPM + Apache: special characters in SCRIPT_FILENAME are URL encoded · Issue #15246 · php/php-src · GitHub
2 Likes
Thank you everyone for sharing your solutions. Unfortunately, although it sounded like there was a patch in the works from Apache, as of 2.4.62 this issue does not appear to have been fixed. This issue is not in Gibbon itself, so not something we’re able to fix from our end, so hopefully the solutions provided by the community will help until there is an Apache software fix. At the moment, it appears to affect all Apache systems running php-fpm. Please try the solution provided by @fvlasie and let us know if you continue to encounter issues. Thanks
1 Like