Checking PHP extensions

Problem

newrelic module section does not appear in phpinfo().

Solution

A missing newrelic module description section in the phpinfo() page indicates that the newrelic.so file may not have been installed in the extensions directory. To determine whether the New Relic PHP module exists:

  1. In your phpinfo() page, look for the PHP Core section.
  2. To identify the directory from where your PHP extensions are loaded, find the local value of the extension_dir setting.
  3. Verify that newrelic.so is present in the directory specified by extension_dir.

If newrelic.so file is not present in your extensions directory, either:

  • Follow New Relic's non-standard PHP installation procedures.

    OR

  • Manually link in the correct version from /usr/lib/newrelic-php5/agent/x32 for 32 bit, or /usr/lib/newrelic-php5/agent/x64 for 64-bit. Or, if you installed from a tar file, copy or link from the agent directory where you extracted the tar file.
phpinfo_example_core.png
Sample phpinfo FIle, Core section: Check the directory specified by extension_dir and verify that newrelic.so is present, If data does not appear on your New Relic APM Overview page within a few minutes after configuring 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.