Page last updated:
Warning: Pivotal Cloud Foundry (PCF) v2.4 is no longer supported because it has reached the End of General Support (EOGS) phase as defined by the Support Lifecycle Policy. To stay up to date with the latest software and security updates, upgrade to a supported version.
New Relic collects analytics about application and client-side performance.
You can configure New Relic for the PHP buildpack in one of two ways:
- With a license key
- With a Cloud Foundry service
With a License Key
Use this method if you already have a New Relic account,
In a web browser. navigate to the New Relic website to find your license key.
Set the value of the environment variable
NEWRELIC_LICENSEto your New Relic license key, either through the manifest.yml file or by running the
For more information, see https://github.com/cloudfoundry/php-buildpack#supported-software
With a Cloud Foundry Service
To configure New Relic for the PHP buildpack with a Cloud Foundry service, bind a New Relic service to the app. The buildpack automatically detects and configures New Relic.
VCAP_SERVICES environment variable must contain a service named
newrelic service must contain a key named
credentials, and the
credentials key must contain named
NOTE: You cannot configure New Relic for the PHP buildpack with user-provided services.