SetEnv in vhost.local not being seen in php.ini
Greetings!
I have a SetEnv in my vhosts.local:
SetEnv newrelic_appname [% wildcard_safe(vhost.servername) %]
You can see that this is working:
line:
_SERVER["newrelic_appname">
So I set in my php.ini:
/usr/local/lib/php.ini
newrelic.appname = "${newrelic_appname}"
This should be getting the SetEnv from apache and replacing it with domain.com, however php is not able to access Apache's ENV as it defaults to the default newrelic.appname.
Just to be sure, I can change newrelic.appname = "ANYTHING" and it does indeed change.
How can I access Env variables in vhost.local from php?
-
I was able to figure this out! I changed my php config to use suexec instead of fcgi. It's a bit slower then fcgi but it works :) 0 -
I am happy to see the issue is now resolved. Thank you for updating us with the outcome. 0
Please sign in to leave a comment.
Comments
2 comments