Thanks for your replies and great effort. I really appreciate it.
As you can see the screenshot of phpinfo();
of my server, newrelic.ini is located in /etc/php5/cgi/conf.d
as /etc/php5/cgi/conf.d/20-newrelic.ini
file. I have renamed it to 20-newrelic.ini
instead of just newrelic.ini
file just like other files were. And yes, it has its own ini file but it is for global and has default appname as “PHP Application”. What i wanted to have was custom name per domain.
There is already a php.ini file per domain in virtualmin domain setup in /home/domain.com/etc/php.ini
and i tried to add newrelic.appname = "domain.com"
there, was no luck. I don’t know if i should create another php.ini file in public directory of the domain i.e. /home/domain.com/public_html/php.ini
or should i add php_value newrelic.appname "domain.com"
in .htaccess of public_html folder.
Also, maybe should i remove 20-newrelic.ini
file from getting included in gobal folders and copy this filer per domain php.ini file like copying content of 20-newrelic.ini
to /home/domain.com/etc/php.ini
such as following when mutliple domain:
- copy content of
20-newrelic.ini
to /home/domain1.com/etc/php.ini
- copy content of
20-newrelic.ini
to /home/domain2.com/etc/php.ini
- copy content of
20-newrelic.ini
to /home/domain3.com/etc/php.ini
and delete 20-newrelic.ini
file from global folder i.e. /etc/php5/cgi/conf.d/20-newrelic.ini
.
Sorry, just i am just thinking and writing my opinion. I haven’t tested this. I will try these above today sometime and let you guys know.
Thank you.