• /
  • Log in

PHP installation fails on OS X 10.11 - El Capitan

Problem

You attempt to install the PHP agent on OS X 10.11 - El Capitan, and it fails.

Solution

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.

Caution

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.

Cause

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).

For more help

If you need more help, check out these support and learning resources:

Create issueEdit page
Copyright © 2021 New Relic Inc.