If you are using a non-standard PHP installation, follow this procedure to properly install New Relic. This is common in instances where the default installer does not find your PHP installation (for example, if you have self-compiled PHP or a self-contained PHP stack).
As part of the installation process, change the default application name to a meaningful name.
Use the command line version of PHP (
php -i) or look at the output of
phpinfo() to determine:
- The PHP extension version (
- The extension or module installation directory
- Whether or not your version of PHP has been compiled with ZTS (Zend Thread Safety) support
Point New Relic at the right directory by using any of these options:
newrelic-installscript from its directory. Depending on your server and your paths, the install script may find other versions of PHP on your system. Select your specific version from the list.
If you do not want to use the install script, you can perform a fully manual installation. You will need to gather information about your PHP installation, as described above, and create and link or copy the files into place manually.
You can either review and obtain the appropriate values from your
phpinfo() yourself, or you can load our manual installation script [ZIP] into your document root to automatically generate all the commands for your specific environment.
The manual installation script is the simpler method, and it can be reused to upgrade the PHP agent. It will also confirm a successful installation upon reload.
Wait for 3 to 5 minutes for results to arrive in your APM Summary page.
If you need more help, check out these support and learning resources:
- 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.