This is an old revision of the document!


Litespeed Web Server New Relic Installation Guide(PHP Monitoring)

Step 1:

PHP agent installation

  1. Red Hat/CentOS:

``` yum install newrelic-php5 sudo newrelic-install install ```

  1. Debian/Ubuntu:

``` 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 - sudo apt-get update sudo apt-get install newrelic-php5 sudo newrelic-install install ```

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.

Step 2:

Restart your web server and PHP service ``` systemctl restart lsws killall lsphp ```

Step 3:

Visit any PHP page to generate some traffic.

Step 4:

Attempt to connect to the application on the New Relic account page, and it should be working.

  • Admin
  • Last modified: 2020/12/01 04:11
  • by Eric Leu