Bug #69254 [Com]: .user.ini ignored in subfolders
Edit report at https://bugs.php.net/bug.php?id=69254&edit=1
ID: 69254
Comment by: framelio at gmail dot com
Reported by: framelio at gmail dot com
Summary: .user.ini ignored in subfolders
Status: Open
Type: Bug
Package: FPM related
Operating System: Linux
PHP Version: 5.6.6
Block user comment: N
Private report: N
New Comment:
This is not a bug or perhaps a different kind of bug.
I've noticed that the _SERVER["SCRIPT_FILENAME"] started with a double slash
"//path/to/script.php".
This was due to a trailing slash in the configuration of the mod_proxy_fcgi directive.
SetHandler "proxy:unix:/tmp/file.sock|fcgi://localhost/"
should be replaced with
SetHandler "proxy:unix:/tmp/file.sock|fcgi://localhost"
Previous Comments:
------------------------------------------------------------------------
[2015-03-18 09:45:22] framelio at gmail dot com
Description:
------------
I have a problem with all the recent versions of PHP: 5.3.29, 5.4.38, 5.5.22 and 5.6.6.
The .user.ini file is considered in the directory containing the PHP file itself, but ignored in the
subfolders.
Configuration on linux with Apache 2.4.12 and mod_proxy_fcgi and PHP-FPM configuration:
<FilesMatch \.php$>
SetHandler "proxy:unix:/path/to/.socks/php-domain.sock|fcgi://domainname/"
</FilesMatch>
The .user.ini directives apply only in the same folder as the php file and not in the subfolders.
Some phpinfo:
Server API: FPM/FastCGI (fpm-fcgi and not cgi-fcgi)
_SERVER["DOCUMENT_ROOT"] is correctly set to the virtualhost DocumentRoot
I didn't have the problem when working with mod_fastcgi using FastCgiExternalServer directive.
I suppose that, in that configuration the API is cgi-fcgi?)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=69254&edit=1
Thread (4 messages)