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 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?
Last edited by a moderator: