Like many of you, we've started to use New Relic to deep dive into performance of our websites.

Right now, we have a client's production server that has a version of Craft, ExpressionEngine and Wordpress.

Right now WP and Craft get lumped together as a 'PHP application'. Is there any config setting to allow us to set 'Craft CMS' as a thing to differentiate?

We've been able to do this with EE.

2 Answers 2


This method uses New Relic's PHP API, rather than php.ini, and is working well for me. It seems to be catching everything that I need to monitor. Any applications I've not done this for remain in the default application.

Just stick this in Craft's index.php file:

if (extension_loaded('newrelic')) {
    newrelic_set_appname('NAME OF SITE');

I haven't tried it with ExpressionEngine or Wordpress, but the principle would be the same?


Looks like this can be done with a php.ini file in Craft's public HTML folder.

Although, we should be able to call an ini_set for it in Craft itself. If you want to hit up [email protected], I'll give you a file that you can test with.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.