Checking loaded configuration files directory

Problem

The newrelic module appears in your phpinfo() page but no data is appearing in your UI and your license key does not appear there.

Solution

The newrelic.ini file may not have been read from the configuration file because it may not appear in a directory where PHP expects it to be. To determine where your newrelic.ini should appear:

  1. In your phpinfo() page, look at the first section of the page.
  2. Check to see if newrelic.ini is listed in the section labeled Additional .ini files parsed
  3. Check to see your newrelic.ini file exists in the directory identified in the section labelled Scan this dir for addition .ini files or Additional .ini files parsed and verify that permission are suitable for your webserver to read it.

If newrelic.ini is not the name of your configuration file, check that the file to which you have added your license key and other configuration parameters is listed as having been read. Verify that the permissions on the file provide access for your webserver.

phpinfo_example_top.png
Sample phpinfo() showing top of page: Verify that the configuration file is being read by checking the top section for the Configuration File Path, the Loaded Configuration Files and the Addition .ini files parsed locations if data does not appear on your New Relic APM Overview page within a few minutes after configuration and restarting your webserver and PHP.

For more help

Additional documentation resources include PHP Agent Troubleshooting (individual topics describing common problems, causes, and solutions for your PHP agent installation).

Join the discussion about PHP in the New Relic Online Technical Community! The Technical Community is a public platform to discuss and troubleshoot your New Relic toolset.

If you need additional help, get support at support.newrelic.com.