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
Intel (and compatible) platforms only.
Support for SSE2 instructions is required.
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, if you need help or if you want to request other popular PHP frameworks, get support at support.newrelic.com.
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 (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, get support at support.newrelic.com.
Additional documentation resources include:
If you need additional help, get support at support.newrelic.com.