Installing New Relic for Magento 2
Yireo_NewRelic2 module for Magento 2 allows you to enhance the information passed on from Magento to the New Relic dashboard. The following guide helps you to install things.
Getting the source
To install this extension, first you will need to upload the PHP source to your Magento 2 site. There are two ways to do this: Via manual upload or via composer. We recommend to use composer, but for this you will need to have the proper knowledge.
To install the source by manual upload, first download the package source from our downloads page. Unpack the sources on your computer and then upload the contents to the Magento folder
app/code/Yireo/NewRelic2 using FTP, SSH or
git. Create this folder if it does not exist.
To install the source using composer, follow our guidelines on GitHub. This will place the files not in
app/code but in
Enabling the module
Once the files are in place, you need to enable the module. This can be done from the command-line (SSH) using the following command:
bin/magento module:enable Yireo_NewRelic2
If your environment does not have SSH, modify the file app/etc/config.php manually and add a line like this to the list of existing modules:
'Yireo_NewRelic2' => 1,
Flush the cache
After this, flush the cache. After the cache is flushed, the module should be available in your backend.
Be aware that the procedure of running files within Magento is different in Production Mode or Developer Mode. Refer to the Magento documentation for dealing with things like static view file processing.