Hey there Y’all,
Me and the DevOps that is putting up the site for our community have found some interesting differences between the contents of the $_SERVER
variable on a mod_php
and a php-fpm
.
While accessing /users/login
:
- On
mod_php
the contents of$_SERVER['PHP_SELF']
are/index.php
- On
php-fpm
the contents of$_SERVER['PHP_SELF']
are/users/login
I’m now somewhat convinced that this is what’s messing the $base
and $webroot
content after the ServerRequestFactory::getBase()
, but I’m not completely sure.
I’m still thinking that this is related to some Apache config, but again, I’m just speculating at this time.
This is getting us both really confused, since under mod_php
it just works, but something on the php-fpm
side is messing the contents of the $base
and $webroot
variables on the above mentioned static method of the factory.
Cheers,
Gus