Skip to content

Instantly share code, notes, and snippets.

@phpfour
Created October 23, 2015 13:49
Show Gist options
  • Select an option

  • Save phpfour/b358c64f5a3612a49b0c to your computer and use it in GitHub Desktop.

Select an option

Save phpfour/b358c64f5a3612a49b0c to your computer and use it in GitHub Desktop.
New Relic Setup
# Get the key:
wget -O - https://download.newrelic.com/548C16BF.gpg | sudo apt-key add -
# Add our repository:
sudo sh -c 'echo "deb http://apt.newrelic.com/debian/ newrelic non-free" > /etc/apt/sources.list.d/newrelic.list'
# Install the package and configure it:
sudo apt-get update
sudo apt-get install newrelic-php5
sudo newrelic-install install
# Add your license key to the file you've set up with your New Relic properties: newrelic.ini or php.ini.
newrelic.license="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
# Add the New Relic repository:
32-bit: sudo rpm -Uvh http://yum.newrelic.com/pub/newrelic/el5/i386/newrelic-repo-5-3.noarch.rpm
64-bit: sudo rpm -Uvh http://yum.newrelic.com/pub/newrelic/el5/x86_64/newrelic-repo-5-3.noarch.rpm
# Install the agent:
sudo yum install newrelic-php5
sudo newrelic-install install
# Add your license key to the file you've set up with your New Relic properties: newrelic.ini or php.ini.
newrelic.license="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment