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.
Requirements
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.
Installation
To install New Relic's PHP agent on AWS Elastic Beanstalk:
In the
.ebextensions
folder inside your Elastic BeanStalk application, create a new file namednewrelic.config
.Add the following content to the file:
packages: yum: newrelic-php5: [] rpm: newrelic: INSERT_LINK_TO_REPO commands: configure_new_relic: command: newrelic-install install env: NR_INSTALL_SILENT: true NR_INSTALL_KEY: INSERT_LICENSE_KEY
Replace
INSERT_LINK_TO_REPO
with the appropriate repository URL.- For 32-bit systems, use
http://yum.newrelic.com/pub/newrelic/el5/i386/newrelic-repo-5-3.noarch.rpm
- For 64-bit systems, use
http://yum.newrelic.com/pub/newrelic/el5/x86_64/newrelic-repo-5-3.noarch.rpm
- For 32-bit systems, use
Replace
INSERT_LICENSE_KEY
with your New Relic license key.Push your app to Elastic BeanStalk:
- In general, use
eb deploy
. - If you are still using Eb CLI 2.6 , use
git aws.push
if required.
- In general, use
After a successful setup, it can take up to fifteen minutes before metrics begin to appear in New Relic. To view your APM Summary page: Go to one.newrelic.com > APM > (select your app).
その他のヘルプ
さらに支援が必要な場合は、これらのサポートと学習リソースを確認してください:
- Explorers Hubでは、コミュニティからのサポートを受けたり、ディスカッションに参加したりすることができます。
- 当社サイトで答えを見つけて、サポートポータルの使用方法を確認してください。
- Linux、Windows、およびmacOS向けトラブルシューティングツールであるNew Relic Diagnosticsを実行してください。
- New Relicの とandドキュメント をご確認ください。