I'm running into some trouble figuring out how I should handle something under FastCGI that worked pretty easily under mod_php. Before I was using SetEnv
to pass options from my VirtualHost directive to my PHP application. For example:
SetEnv MYAPP_LOGGING_ROOT "/usr/local/myapp/logs"
I was able to access this value from $_SERVER['MYAPP_LOGGING_ROOT']
and it was a pretty convenient way to do manage this. However, this value is not being passed to my PHP application in a FastCGI environment.
I tried the following but it does not appear to be passing all the way down to my PHP application either:
FcgidInitialEnv MYAPP_LOGGING_ROOT "/usr/local/myapp/logs"
Am I missing something simple or do I need to be doing something more complex?