New Relic is a powerful web-based tool that allows you to track your web applications and microservices as well as other components, all in one place. It also provides valuable information on real-time performance. You can find out all about it here: What is New Relic and what can it be used for?
If you're ready to start using New Relic, just follow these steps:
Step 1 - Preparation
First, make sure that:
You have created an account on New Relic and have a free or paid plan
You have generated an INGEST – LICENSE API key
Step 2 - Enable PHP extension
Go to Websites → Manage on your hPanel, search for PHP Configuration on the sidebar and click on it:
Next, click on the PHP Extensions tab, scroll down to find newrelic and click on the checkbox to enable:
Click on Save to apply the change, and it will be active in a couple of minutes.
Step 3 - Edit .htaccess file
Now that you have enabled the New Relic PHP extension, add the following lines to your .htaccess file:
php_value newrelic.license "license"
php_value newrelic.appname "test_app"
Make sure to replace license
with the value of your New Relic INGEST – LICENSE key, and test_app
with the name of your PHP application.
That's it! You will be able to view the performance reports right away by logging into your New Relic account's dashboard 😊
Additional resources: