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.
注意
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:
- Boot into recovery mode.
- Disable SIP and reboot.
- Install the New Relic PHP agent.
- Boot into recovery mode.
- 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).
その他のヘルプ
さらに支援が必要な場合は、これらのサポートと学習リソースを確認してください:
- Explorers Hubでは、コミュニティからのサポートを受けたり、ディスカッションに参加したりすることができます。
- 当社サイトで答えを見つけて、サポートポータルの使用方法を確認してください。
- Linux、Windows、およびmacOS向けトラブルシューティングツールであるNew Relic Diagnosticsを実行してください。
- New Relicの とandドキュメント をご確認ください。