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.
Downloading New Relic
To download the latest New Relic agent:
- Log in to New Relic.
- From the New Relic menu bar, select (account) > Account settings.
- Select the option to download the agent for your platform.
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 .ebextensions folder inside your Elastic BeanStalk application, create a new file named newrelic.config.
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:
INSERT_LICENSE_KEYwith your New Relic license key.
Push your app to Elastic BeanStalk:
After a successful setup, it can take up to fifteen minutes before metrics begin to appear in New Relic. To view your APM Overview page: From the New Relic menu bar, select APM > Applications > (selected app).
For more help
Additional documentation resources include: