You need to determine what system permissions you need to install and use the New Relic PHP agent.
For most use cases, you will need root access to install New Relic for PHP. This is because the installation process requires privileges only available to the root user. These privileges include:
- Read/write access to the PHP extensions directory
- Read/write access to PHP configuration data, either in the PHP configuration directory (preferred) or in php.ini.
- Ability to restart the web server or PHP process pool.
Running the agent does not require root access. The agent does need read/write access to the following files (the location of these files can be customized in the PHP agent settings):
- A file in which to store the agent's log files
- A file in which to store the agent's socket endpoint
- A file in which to record the agent's process ID
If you need more help, check out these support and learning resources:
- Suggest a change and learn how to contribute to our PHP agent open source repository.
- Browse the Explorers Hub to get help from the community and join in discussions.
- Find answers on our sites and learn how to use our support portal.
- Run New Relic Diagnostics, our troubleshooting tool for Linux, Windows, and macOS.
- Review New Relic's data security and licenses documentation.