Forum

newrelic with Hiawatha

Alex
24 September 2014, 23:33
In my ongoing mission of spreading the Hiawatha love, I came to a problem
while considering a full switch from a russian webserver *cough*, to Hiawatha.

I need Hiawatha to change php directives to make it work with newrelic properly.
When installing the newrelic phpfpm module, it adds a few rows to the php parameters, like the following:

newrelic
New Relic RPM Monitoring enabled
New Relic Version 4.13.1.71

Global Directives
Directive Name Global Value
newrelic.appname -> xyz Forums <- change this global var
[...]


I checked the Setenv option, but that is not sufficient, as it only adds

_SERVER["newrelic_appname"] xyz Forums

to the PHP Variables.
It has to be set per host.

Would be nice advertisement if I could fully migrate this high traffic page to Hiawatha.
Hiawatha version: 9.7
Operating System: Debian sid
Hugo Leisink
25 September 2014, 12:05
I have no idea what newrelic is, will take a look at it when I have the time. In the meantime, does the PHPRC environment variable offer a solution? Via the Setenv setting, you can use it to use a different php.ini for every website.
Alex
2 October 2014, 00:11
Okay, so Hiawatha doesn't have such intrusive options, thats fine.

I did it with php_value[newrelic.appname] = "My App" within the phpfpm pool options.

Finally able to migrate the cluster!

This topic has been closed.