Upgrade Your Drupal Skills

We trained 1,000+ Drupal Developers over the last decade.

See Advanced Courses NAH, I know Enough

How to install and setup New Relic on CentOS and RedHat to use with Drupal

Parent Feed: 

New Relic is the all-in-one web application performance tool that lets you see performance from the end user experience down to the line of application code. Check out New Relic at http://newrelic.com/

Step 1: Setup repository and install packages

First become root

[pwaters@drupal-dev-pwaters ~]$ sudo su -

First you need  to add New Relics repositries to your server

32 bit

[root@drupal-dev-pwaters ~]# rpm -Uvh http://yum.newrelic.com/pub/newrelic/el5/i386/newrelic-repo-5-3.noarch.rpm

64bit

[root@drupal-dev-pwaters ~]# rpm -Uvh http://yum.newrelic.com/pub/newrelic/el5/x86_64/newrelic-repo-5-3.noarch.rpm

Next install the yum package

[root@drupal-dev-pwaters ~]# yum install newrelic-php5

Last we need to run the New Relic install script

[root@drupal-dev-pwaters ~]# newrelic-install

Enter '1' and press enter.

Lastly you will need to edit the file /etc/newrelic/newrelic.cfg and add you api key fron newrelic.cfg

[root@drupal-dev-pwaters ~]# nano /etc/newrelic/newrelic.cfg 

Lastly restart New Relic Deamon

[root@drupal-dev-pwaters ~]# /etc/init.d/newrelic-daemon restart

Step 2: Install and Configure New Relic Drupal Module

Download and enable the New Relic module from here

Next navigate to Admin > Site Configuration > New Relic RPM Settings

Fill out your Application name, You may not know this until New Relic picks up your site. Login to New Relic and it will automatically assign an Application name.

Next fill out your api key, you can find this in your New Relic account.

From the looks of it at this point the New Relic drupal module is a bit unfinished. But once you install the yum package and click through your site, New Relic will automatically start tracking your site.

Author: 
Original Post: 

About Drupal Sun

Drupal Sun is an Evolving Web project. It allows you to:

  • Do full-text search on all the articles in Drupal Planet (thanks to Apache Solr)
  • Facet based on tags, author, or feed
  • Flip through articles quickly (with j/k or arrow keys) to find what you're interested in
  • View the entire article text inline, or in the context of the site where it was created

See the blog post at Evolving Web

Evolving Web