• Log in

PHP installation fails on macOS 10.11 (El Capitan)


You attempt to install the PHP agent on macOS 10.11 (El Capitan), and it fails.


If necessary, you can install the PHP agent by disabling Apple's System Integrity Protection (SIP). This is true for the newrelic-install script and for manual installations.


This is not an endorsement for disabling SIP in general. Be sure to verify that this does not violate the security policies of your organization.

Follow this general procedure:

  1. Boot into recovery mode.
  2. Disable SIP and reboot.
  3. Install the New Relic PHP agent.
  4. Boot into recovery mode.
  5. Re-enable SIP and reboot.

There are many articles available on the web that describe SIP and the steps for disabling, re-enabling, and checking the status.


PHP agent installation requires the daemon program to be installed in /usr/bin and the extension module in /usr/lib. However, those directories have R-X permissions, which means the daemon cannot be installed by normal means.

Apple's System Integrity Protection, SIP, prevents the modification of permissions on these directories even when logged in as root, admin, or via a sudo privileged account. This also applies in situations where the PHP bin is self-contained (for example, MAMP).

Copyright © 2022 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.