Quantcast
Channel: Webkul Blog
Viewing all articles
Browse latest Browse all 5490

Install New Relic for PHP applications on linux

$
0
0

Applications need to be tested for their best results and i found nothing better than New Relic, a single application to monitor you coding, database, server, network of an application, also it is very easy to setup and monitor. Here are the steps tp install New relic for PHP applications on linux machine. (here i have used UBUNTU 12.04 LTS)

#apt-get update
#apt-get install newrelic-php5

Now you new relic for php applications will be installed

Install the server

1). It Will add the repository

#sudo echo deb http://apt.newrelic.com/debian/ newrelic non-free >> /etc/apt/sources.list.d/newrelic.list

2.) For New Relic GPG key

wget -O- https://download.newrelic.com/548C16BF.gpg | apt-key add -

3.) update the package list

apt-get update

4). configure the deamon

nrsysmond-config --set license_key=“key”  ( NOTE- for key you have to make account on New relic website and you can generate key from there, just compy that key and paste it at the place of “key”.

5). start the service

/etc/init.d/newrelic-sysmond start

Now you server(what ever applications and sites and plugins are there) will sync the data to the new relic account and the results of you applications can be analyzed there.

Even the result of Apache benchmarking to the specific page can also be viewed from the account. Here are the few snapshots of the account.

From the snapshots we can see the page load time, time taken by specific page to load, DOM loading, network latency, server latency.

Screenshot from 2014-08-29 17:57:35 Screenshot from 2014-08-29 17:57:58

 


Viewing all articles
Browse latest Browse all 5490

Trending Articles