{"id":723,"date":"2023-01-04T14:17:17","date_gmt":"2023-01-04T14:17:17","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2023\/01\/04\/6868041-how-to-set-up-new-relic-at-hostinger\/"},"modified":"2026-03-16T12:12:04","modified_gmt":"2026-03-16T12:12:04","slug":"6868041-how-to-set-up-new-relic-at-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/6868041-how-to-set-up-new-relic-at-hostinger\/","title":{"rendered":"How to Set Up New Relic at Hostinger"},"content":{"rendered":"<p class=\"no-margin\">New Relic is a powerful web-based tool that allows you to track<b> <\/b>your web applications and microservices as well as other components, all in one place. It also provides valuable information on <b>real-time performance<\/b>. You can find out all about it here: <b><a href=\"https:\/\/www.hostinger.com\/tutorials\/what-is-new-relic\" target=\"_blank\" class=\"intercom-content-link\">What is New Relic and what can it be used for?<\/a><\/b><\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">If you&rsquo;re ready to start using New Relic, just follow these steps:<\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_e9268f22bb\">Step 1 &ndash; Preparation<\/h2><p class=\"no-margin\">First, make sure that:<\/p><ul>\n<li>\n<p class=\"no-margin\">You have <b>created an account<\/b> on <b><a href=\"https:\/\/newrelic.com\/\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">New Relic<\/a><\/b> and have a free or paid <b>plan<\/b><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">You have generated an <b>INGEST &ndash; LICENSE<\/b> API key<\/p>\n<\/li>\n<\/ul><p class=\"no-margin\">\n<\/p><h2 id=\"h_0cb297d5f2\">Step 2 &ndash; Enable PHP extension<\/h2><p class=\"no-margin\">Go to <b><a href=\"https:\/\/hpanel.hostinger.com\/websites\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">Websites<\/a><\/b> &rarr; <b>Manage <\/b>on your hPanel,<b> <\/b>search for <b>PHP Configuration<\/b> on the sidebar and click on it:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2023\/01\/baed9a58-210f-48db-a4dd-75f6c6de43b9.jpg\" alt=\"The PHP Configuration option on Hostinger hPanel\"><\/div><p class=\"no-margin\">Next, click on the <b>PHP Extensions<\/b> tab, scroll down to find <b>newrelic<\/b> and click on the checkbox to enable:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2023\/01\/222fbdf8-b075-4e51-b97e-1a3d91b91e33.jpg\" alt=\"The PHP extensions tab on PHP Configuration section showing where to enable newrelic\"><\/div><p class=\"no-margin\">Click on <b>Save<\/b> to apply the change, and it will be active in a couple of minutes.<\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_2bf9db68b4\">Step 3 &ndash; Edit .htaccess file<\/h2><p class=\"no-margin\">Now that you have enabled the New Relic PHP extension, add the following lines to your <b><a href=\"\/support\/1583307-how-to-create-an-htaccess-file\" target=\"_blank\" class=\"intercom-content-link\">.htaccess file<\/a><\/b>:<\/p><pre><code>php_value newrelic.license \"license\"<br>php_value newrelic.appname \"test_app\"<\/code><\/pre><p class=\"no-margin\">Make sure to replace <code>license<\/code> with the value of your New Relic INGEST &ndash; LICENSE key, and <code>test_app<\/code> with the name of your <b><a href=\"https:\/\/docs.newrelic.com\/docs\/apm\/agents\/php-agent\/configuration\/name-your-php-application\/\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">PHP application<\/a><\/b>.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">That&rsquo;s it! You will be able to view the performance reports right away by logging into your New Relic account&rsquo;s dashboard &#128522; <\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\"><b>Additional resources:<\/b><\/p><ul>\n<li>\n<p class=\"no-margin\"><b><a href=\"https:\/\/docs.newrelic.com\/\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">New Relic Documentation<\/a><\/b><\/p>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Enabling New Relic monitoring for your web applications<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[232],"tags":[],"class_list":["post-723","post","type-post","status-publish","format-standard","hentry","category-php-extensions-and-options"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/6868041-how-to-set-up-new-relic-at-hostinger\/","default":1},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/support\/6868041-como-configurar-new-relic-en-hostinger\/","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/support\/6868041-comment-configurer-new-relic-chez-hostinger\/","default":0},{"locale":"lt-LT","link":"https:\/\/www.hostinger.com\/lt\/support\/6868041-kaip-prie-hostinger-prijungti-new-relic\/","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/br\/support\/6868041-como-configurar-new-relic-en-hostinger\/","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/723","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=723"}],"version-history":[{"count":1,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/723\/revisions"}],"predecessor-version":[{"id":3110,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/723\/revisions\/3110"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=723"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=723"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=723"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}