Skip to content

Instantly share code, notes, and snippets.

@mfdj
Last active August 30, 2017 19:25
Show Gist options
  • Select an option

  • Save mfdj/0a3a031ce973e1f31260d48dd709e063 to your computer and use it in GitHub Desktop.

Select an option

Save mfdj/0a3a031ce973e1f31260d48dd709e063 to your computer and use it in GitHub Desktop.

Revisions

  1. mfdj revised this gist Aug 30, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion macos-newrelic-php-extension-install-steps.sh
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    # Grabbed archive from https://download.newrelic.com/php_agent/release/ and decompressed
    gzip -dc newrelic-php*.tar.gz | tar xf -
    cd newrelic-php*
    cd newrelic-php*/

    # manually edited newrelic-install to not use sudo because it's contrary to how Homebrew (and thus most of my system) behaves

  2. mfdj renamed this gist Aug 30, 2017. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. mfdj created this gist Aug 29, 2017.
    11 changes: 11 additions & 0 deletions steps.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    # Grabbed archive from https://download.newrelic.com/php_agent/release/ and decompressed
    gzip -dc newrelic-php*.tar.gz | tar xf -
    cd newrelic-php*

    # manually edited newrelic-install to not use sudo because it's contrary to how Homebrew (and thus most of my system) behaves

    # Homebrew'd PHP doesn't use PHP's typical extensions folder so I created it manually (note path is dependent on php version)
    mkdir -p /usr/local/Cellar/php70/7.0.17_9/lib/php/extensions/no-debug-non-zts-20151012

    # run install script with custom paths (since /usr/bin is not writeable because of macOS "system integrity protection")
    NR_INSTALL_INITFILE=/usr/local/bin/newrelic-daemon-service NR_INSTALL_DAEMONPATH=/usr/local/bin/newrelic-daemon ./newrelic-install