This section provides information about compatibility and requirements, basic instructions on how to install and configure the PHP agent, and links to more detailed information.
To use the PHP agent:
Also refer to the For more help section in this document.
Before you install New Relic for PHP, make sure your system meets these requirements.
|New Relic PHP Agent||Requirements|
5.2, 5.3, 5.4, 5.5
Linux (x86 and x86_64):
SmartOS and Solaris (x86 and x64):
Mac OS X (x86_64 only):
|Note: Support for FreeBSD and 32-bit Mac OS X was removed in release 4.6 of the agent.|
Apache 2.2 or 2.4 via mod_php
* The New Relic PHP agent's list of frameworks continues to grow. Even if the framework you are using is not listed here, New Relic's engineers may be able to provide you with useful information about your app. For more information, see PHP frameworks: Integrating support for New Relic. Or, contact New Relic Support if you need help or if you want to request other popular PHP frameworks.
For any installation, you will need your New Relic license key. This is a 40-character hexadecimal string that New Relic provides when you sign up for your account. To view your license key: From the New Relic title bar, select (selected account) > Account settings.
The agent has two parts, a PHP extension and a local proxy daemon. Follow the appropriate installation instructions carefully to make sure you have accounted for both.
Note: As part of the installation process, change the default application name to a meaningful name.
For standard installations, see:
For other types of PHP installations, see PHP agent installation: Non-Standard PHP.
After installing the PHP agent, configure the settings for both the agent and the proxy daemon, and then restart Apache or your alternate web dispatcher as applicable. For more information, see:
For information about advanced configuration settings, see:
Unlike the other operating systems supported by the New Relic PHP agent, Mac
OS X doesn't use the standard
script. Instead, you can use the
/usr/bin/newrelic-daemon-service script in the same way:
Known issue: On some SmartOS 32-bit VMs, the daemon fails to report metrics. For more help, contact New Relic Support.
Additional documentation resources include:
If you still have problems, submit a support ticket (for fastest service) or email support @ New Relic. Also, you may be able to find support from the community at Stack Overflow. Tag your post with