Integrating New Relic With WordPress W3TC on Rackspace Cloud Server is Not Difficult But Both W3 Total Cache and New Relic Lacks Documentation. The installation process of New Relic is not very difficult, still it is described along with description of how the seamless integration can be done for creating the connection between New Relic With WordPress W3 Total Cache Plugin Hosted on Rackspace Cloud Server. Quite difficult to include all the parameters people searches for within the Title – New Relic, WordPress, W3 Total Cache and Rackspace Cloud Server. Four variables!
Introduction and Installation Part for New Relic on Rackspace Cloud Server
For Deb based system it is quite easy to Install and Activate New Relic. From Rackspace Cloud Marketplace, while logged in, you will signup for New Relic (via Google Plus — OpenID, not sure why Marketplace is not directly internally integrated) and you will get the instructions, they are like these for Ubuntu :
1 2 3 4 5 6 | wget -O - http://download.newrelic.com/548C16BF.gpg | sudo apt-key add - sudo sh -c 'echo "deb http://apt.newrelic.com/debian/ new relic non-free" > /etc/apt/sources.list.d/newrelic.list' sudo apt-get update sudo apt-get install newrelic-php5 sudo newrelic-install install # gracefully restart apache2 |
It will ask for the License Number, you will get it on New Relic Account. Do not hit enter without pasting the License key. On New Relic Control Panel, actually it will take few seconds to get working.
---
Integrating New Relic With WordPress W3TC on Rackspace Cloud Server
On New Relic Web Control Panel :
Account Name ==> Account Settings ==> Integrations ==> Data Sharing ==> API Key [copy]
On WordPress W3 Total Cache :
Performance ==> General Settings ==> Monitoring (below CloudFlare) ==> API key [Paster and Press Verify] ==> Obtain application ID via (Dropdown option gets updated when you sync with the button beside it) ==> Select App Name ==> Save all settings.
New Relic should work. It might give a bit wrong or higher data for single.php file. Probably W3TC and New Relic are bilaterally not aware how the actual things work or W3TC has some wrong things. New Relic will show exact data for MySQL part. Actually, if you want to monitor, you can develop own App which uses XML data.