AWS Elastic Beanstalk is a dynamic service that allows easy deployment and scalability for your PHP applications. Follow these instructions to install AWS with New Relic's PHP agent.
For more information about using Amazon tools with New Relic, see Amazon Web Services (AWS) users.
Before you install New Relic's PHP agent, make sure you have a supported Amazon Web Services account. In addition, for any New Relic 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 install New Relic's PHP agent on AWS Elastic Beanstalk:
- In the
.ebextensionsfolder inside your Elastic BeanStalk application, create a new file named
Add the following content to the file:
packages: yum: newrelic-php5:  rpm: newrelic: INSERT_LINK_TO_AGENT commands: configure_new_relic: command: newrelic-install install env: NR_INSTALL_SILENT: true NR_INSTALL_KEY: INSERT_LICENSE_KEY
INSERT_LINK_TO_AGENTwith the appropriate URL, where X-X is the most recent PHP agent version number.
For 32-bit systems, use
For 64-bit systems, use
INSERT_LICENSE_KEYwith your New Relic license key.
Push your app to Elastic BeanStalk:
For more help
Additional documentation resources include: