wrong DOCUMENT_ROOT on chroot
Bug #465900 reported by
NoSFeRaTU
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PHP-FPM |
New
|
Undecided
|
Unassigned |
Bug Description
I think in chroot mode $_SERVER[
fastcgi_param DOCUMENT_ROOT wantedpath;
But with no success, variable keeps unchanged.
To post a comment you must log in.
what is you nginx conf ?
Don't you have included the fastcgi.conf file after you set the DOCUMENT_ROOT with the fastcgi_param directive ? In this case, it will be overwriten by the fastcgi.conf included file.
Here is an exemple which works:
location ~ \.php$ {
include fastcgi_params;
fastcgi_ pass unix:/home/ www/logs/ fastcgi. sock;
fastcgi_ index index.php;
fastcgi_ param SCRIPT_FILENAME /docs$fastcgi_ script_ name;
fastcgi_ param DOCUMENT_ROOT /docs;
}
and php-fpm is chrooted into /home/www
++ Jerome