Created
October 23, 2015 13:49
-
-
Save phpfour/b358c64f5a3612a49b0c to your computer and use it in GitHub Desktop.
New Relic Setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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