Skip to content

Instantly share code, notes, and snippets.

@JaisonBrooks
Last active January 6, 2022 13:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JaisonBrooks/490a66007559637c5b78 to your computer and use it in GitHub Desktop.
Save JaisonBrooks/490a66007559637c5b78 to your computer and use it in GitHub Desktop.
AWS Elastic beanstalk (PHP) config file for installing and setting up the NewRelic agent
packages:
rpm:
newrelic: http://yum.newrelic.com/pub/newrelic/el5/x86_64/newrelic-repo-5-3.noarch.rpm
yum:
newrelic-php5: []
newrelic-sysmond: []
commands:
"01":
command: newrelic-install install
env:
NR_INSTALL_SILENT: true
NR_INSTALL_KEY: LICENSE_KEY
"02":
command: echo newrelic.appname="APP NAME" >> /etc/php.ini
"03":
command: nrsysmond-config --set license_key=LICENSE_KEY
"04":
command: /etc/init.d/newrelic-sysmond start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment