Dont populate the $_SERVER with the configuration, $_ENV should be enough.

There's no special need to populate the $_SERVER variable with the environment configuration. 

Using the $_ENV variable to retrieve environment specific configuration is also more logic.