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 ?>" </IfModule>
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?