Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
litespeed_wiki:php:new_relic [2020/12/01 04:11] Eric Leu |
litespeed_wiki:php:new_relic [2020/12/01 04:30] (current) Eric Leu |
||
---|---|---|---|
Line 1: | Line 1: | ||
==== Litespeed Web Server New Relic Installation Guide(PHP Monitoring) ==== | ==== Litespeed Web Server New Relic Installation Guide(PHP Monitoring) ==== | ||
- | === Step 1: === | + | === Step 1: PHP agent installation=== |
- | PHP agent installation | + | * Red Hat/CentOS: |
- | - Red Hat/CentOS: | + | sudo rpm -Uvh http://yum.newrelic.com/pub/newrelic/el5/x86_64/newrelic-repo-5-3.noarch.rpm |
- | ``` | + | yum install newrelic-php5 -y |
- | yum install newrelic-php5 | + | sudo newrelic-install install |
- | sudo newrelic-install install | + | |
- | ``` | + | * Debian/Ubuntu: |
- | - Debian/Ubuntu: | + | |
- | ``` | + | echo 'deb http://apt.newrelic.com/debian/ newrelic non-free' | sudo tee /etc/apt/sources.list.d/newrelic.list |
- | echo 'deb http://apt.newrelic.com/debian/ newrelic non-free' | sudo tee /etc/apt/sources.list.d/newrelic.list | + | wget -O- https://download.newrelic.com/548C16BF.gpg | sudo apt-key add - |
- | wget -O- https://download.newrelic.com/548C16BF.gpg | sudo apt-key add - | + | sudo apt-get update |
- | sudo apt-get update | + | sudo apt-get install newrelic-php5 -y |
- | sudo apt-get install newrelic-php5 | + | sudo newrelic-install install |
- | sudo newrelic-install install | + | |
- | ``` | + | |
Configure your application name and New Relic license key. | Configure your application name and New Relic license key. | ||
The installation process prompts for your application name and license key. Your license key appears in the account information section of Account settings. | The installation process prompts for your application name and license key. Your license key appears in the account information section of Account settings. | ||
- | === Step 2: === | + | === Step 2: Restart your web server and PHP service=== |
- | Restart your web server and PHP service | + | systemctl restart lsws |
- | ``` | + | killall lsphp |
- | systemctl restart lsws | + | |
- | killall lsphp | + | |
- | ``` | + | |
- | === Step 3: === | + | === Step 3: Hit PHP page=== |
Visit any PHP page to generate some traffic. | Visit any PHP page to generate some traffic. | ||
- | === Step 4: === | + | === Step 4: Check New Relic staticsitcs=== |
Attempt to connect to the application on the New Relic account page, and it should be working. | Attempt to connect to the application on the New Relic account page, and it should be working. | ||