Problem
You are unsure why or when you must restart your web server (Apache, PHP-FPM, Nginx, etc.) after:
- Installing or upgrading the PHP agent
- Updating PHP to a major release version
- Changing any agent configuration settings in the
newrelic.ini
ornewrelic.cfg
files - Utilizing external startup mode for the daemon
Cause
The PHP agent is a PHP extension. When your web server starts up and loads PHP, it also loads the PHP agent and parses its newrelic.ini
configuration file. The web server uses that configuration until told to re-load and parse configuration files again. Restarting prompts the web server to do that.
You must restart your web server when: