Your data. Anywhere you go.

New Relic for iOS or Android

Download on the App Store    Android App on Google play

New Relic Insights App for iOS

Download on the App Store

Learn more

Close icon

Plesk 17 application names




I have setup a new VPS running Plesk 17 (Onyx). I have enabled the New Relic extension, and the server is reporting properly.

Nevertheless, regarding APM, I can’t seem to find a way to have Plesk automatically set the application name for each domain. So now any php app reports to the generic ‘PHP Application’.

In older versions of Plesk, I had been able to override the default virtual host template to add the following lines:

<IfModule mod_php5.c>
    php_value newrelic.appname "<?php echo $VAR->domain->idnName ?>"

But now php runs under php7.0-fpm. When it comes to PHP I am lost. Any idea how to have Plesk set the application name properly?

Thank you.

I can't see all my application

Hi Wtower,
I’m not very familiar with Plesk, and it’s not officially supported due to the way it assumes control of the installation. However, I’ve been researching this issue and found this page about combining Apache virtual hosts and PHP7 FPM.

One thing I noticed there is that the configuration files are wrapped with
<IfModule mod_fastcgi.c>
instead of <IfModule mod_php5.c>

So maybe give that a try and see if things start reporting correctly?


Hi JayM,

Thanks for your reply. I understand the reasoning behind not supporting plesk, it is a nightmare requirement for myself too. Nevertheless I got to find a solution for that, and I was hoping that this would be covered by the New Relic Plesk plugin.

I have tried this:

<IfModule mod_php5.c>
    php_value newrelic.appname "<?php echo $VAR->domain->idnName ?>"

<IfModule mod_php7.c>
    php_value newrelic.appname "<?php echo $VAR->domain->idnName ?>"

<IfModule mod_fastcgi.c>
    php_value newrelic.appname "<?php echo $VAR->domain->idnName ?>"

None of the above seem to work unfortunately. Any ideas are welcome.


I’m also getting the same issue. Have you managed to resolve this?


No, unfortunately nothing. I specify a custom directive for each domain:

newrelic.appname = "[myapp];[myapp]"

But this has several drawbacks. It is manual, so you need to remember doing that for every domain being setup, and it also locks the subscription. Not to mention that customers see it and meddle with it.


This will work for PHP-FPM handlers:

Edit or create if does not exist


do it for each domain (I do it programmatically), then rebuild php configurations:
plesk bin site --update-php-settings