Hello All,
I have been trying to setup Newrelic PHP APM on my WHM server. I have the module installed and reporting already but am having trouble setting user specific php.ini settings.
Currently the system is running CENTOS 7.2 x86_64 kvm – WHM 58.0 (build 8)
I have been able to successfully have php recognize the local php.ini by placing a copy in /home/USER/public_html . When viewing phpinfo() it correctly shows that this file is loaded.
Where my issue comes in is that newrelic has its own ini file stored in /opt/cpanel/ea-php56/root/etc/php.d/newrelic.ini and it appears this gets loaded AFTER the local /home/USER/public_html/php.ini and overrides my settings.
I simply want to load:
newrelic.appname = "PHP Application" in the /opt/cpanel/ea-php56/root/etc/php.d/newrelic.ini file.
How would I go about loading my changes AFTER the php.d directory is parsed?
I have been trying to setup Newrelic PHP APM on my WHM server. I have the module installed and reporting already but am having trouble setting user specific php.ini settings.
Currently the system is running CENTOS 7.2 x86_64 kvm – WHM 58.0 (build 8)
I have been able to successfully have php recognize the local php.ini by placing a copy in /home/USER/public_html . When viewing phpinfo() it correctly shows that this file is loaded.
Where my issue comes in is that newrelic has its own ini file stored in /opt/cpanel/ea-php56/root/etc/php.d/newrelic.ini and it appears this gets loaded AFTER the local /home/USER/public_html/php.ini and overrides my settings.
I simply want to load:
[newrelic]
newrelic.appname="My App Name"
But this is being overridden by newrelic.appname="My App Name"
newrelic.appname = "PHP Application" in the /opt/cpanel/ea-php56/root/etc/php.d/newrelic.ini file.
How would I go about loading my changes AFTER the php.d directory is parsed?
Last edited by a moderator: