Some New Relic solutions require installation of an agent. The agent root directory is the main folder that holds the files for the agent. Typically, the agent root directory is the directory where the agent install process places the agent configuration file.
You may need to find the agent root directory for several reasons:
The location of the PHP agent root directory depends on how you installed the agent:
Root directory location
With a package manager or tar archive
Use phpinfo() and look in the sections called Scan this dir for additional .ini files or Additional .ini files parsed for the location of the newrelic.ini file. This file will be in the agent root directory, which is called newrelic-php5.
The PHP agent root directory is called newrelic-php5 for all supported PHP versions, including PHP 7.