Your data. Anywhere you go.

New Relic for iOS or Android


Download on the App Store    Android App on Google play


New Relic Insights App for iOS


Download on the App Store


Learn more

Close icon

New relic php won't install

newrelic-daemon
phpagent
fatal
copy
failed

#1

I run sudo and root with my computer and add number to the php file but it gives a error message failed.
Last login: Wed Nov 30 22:58:35 on ttys000
You have new mail.
MacBook-Pro-de-Justin:~ Djusstattoo$ cd ~/djusstattoo/téléchargements/root
-bash: cd: /Users/Djusstattoo/djusstattoo/téléchargements/root: No such file or directory
MacBook-Pro-de-Justin:~ Djusstattoo$ cd root
-bash: cd: root: No such file or directory
MacBook-Pro-de-Justin:~ Djusstattoo$ cd téléchargements
-bash: cd: téléchargements: No such file or directory
MacBook-Pro-de-Justin:~ Djusstattoo$ cd telechargements
-bash: cd: telechargements: No such file or directory
MacBook-Pro-de-Justin:~ Djusstattoo$ cd: /téléchargements
-bash: cd:: command not found
MacBook-Pro-de-Justin:~ Djusstattoo$ cd /téléchargements
-bash: cd: /téléchargements: No such file or directory
MacBook-Pro-de-Justin:~ Djusstattoo$ cd dowloads
-bash: cd: dowloads: No such file or directory
MacBook-Pro-de-Justin:~ Djusstattoo$ cd downloads
MacBook-Pro-de-Justin:downloads Djusstattoo$ cd root
MacBook-Pro-de-Justin:root Djusstattoo$ sudo ./newrelic-install
Password:

New Relic PHP Agent Installation (interactive mode)

Please select from one of the following options:

1)  Install New Relic Agent and Daemon
2)  Uninstall New Relic Agent and Daemon

0)  Exit

Enter choice (1-2, 0 to exit): 1

New Relic PHP Agent Installation (interactive mode)

Enter New Relic license key (or leave blank): a63d26bab2609b1bd5361a2a862b6bf20ebf5aeb
Found a valid PHP in : /usr/bin
PHP Version : 5.6.25
Module API version : 20131226
Module directory : /usr/lib/php/extensions/no-debug-non-zts-20131226
Zend Thread Safety : no
CLI ini file : /etc/php.ini
Install Status : failed

Agent installation complete. The following php.ini files need to be
modified by hand to load the New Relic extension, enable
it, and configure it. A sample ini file fragment can be found at:

/Users/Djusstattoo/Downloads/root/scripts/newrelic.ini.template

Without performing this step the agent will not be loaded correctly. The
ini file(s) you need to modify are:

/etc/php.ini

FATAL: failed to copy new daemon into place
FATAL: New Relic agent installation failed.
Please contact http://support.newrelic.com
and report the above error. We have also created a tar file with
log files and other system info that can help solve the problem.
If the file /tmp/nrinstall-20161130-231155-89014.tar exists please attach it to your bug report.
We apologize for the inconvenience.
MacBook-Pro-de-Justin:root Djusstattoo$ sudo ./newrelic-install
Password:
ERROR: the following files could not be found:
/Users/Djusstattoo/Downloads/root/scripts/newrelic.ini.template

The New Relic installation directory is incomplete. The files or
directories listed above could not be found. This usually means that
you have a corrupt installation archive. Please re-download your New
Relic software and try again. If the problem persists, please contact
http://support.newrelic.com and report the issue. Be sure
to include all the above output in your bug report. We apologize for the
inconvenience.

MacBook-Pro-de-Justin:root Djusstattoo$ sudo ./newrelic-install

New Relic PHP Agent Installation (interactive mode)

Please select from one of the following options:

1)  Install New Relic Agent and Daemon
2)  Uninstall New Relic Agent and Daemon

0)  Exit

Enter choice (1-2, 0 to exit): 1

New Relic PHP Agent Installation (interactive mode)

Enter New Relic license key (or leave blank): a63d26bab2609b1bd5361a2a862b6bf20ebf5aeb
Found a valid PHP in : /usr/bin
PHP Version : 5.6.25
Module API version : 20131226
Module directory : /usr/lib/php/extensions/no-debug-non-zts-20131226
Zend Thread Safety : no
CLI ini file : /etc/php.ini
Install Status : failed

Agent installation complete. The following php.ini files need to be
modified by hand to load the New Relic extension, enable
it, and configure it. A sample ini file fragment can be found at:

/Users/Djusstattoo/Downloads/root/scripts/newrelic.ini.template

Without performing this step the agent will not be loaded correctly. The
ini file(s) you need to modify are:

/etc/php.ini

FATAL: failed to copy new daemon into place
FATAL: New Relic agent installation failed.
Please contact http://support.newrelic.com
and report the above error. We have also created a tar file with
log files and other system info that can help solve the problem.
If the file /tmp/nrinstall-20161130-232035-89552.tar exists please attach it to your bug report.
We apologize for the inconvenience.
MacBook-Pro-de-Justin:root Djusstattoo$
and there is no etc folder with ini.php file in it just the template newrelic.ini.template file i replaced the serial and named the app in the php and nothing works i am using root acces.


#2

wtf happend there? i was trying to copy the error message

New Relic PHP Agent Installation (interactive mode)

New Relic PHP Agent Installation (interactive mode)

Enter New Relic license key (or leave blank): a63d26bab2609b1bd5361a2a862b6bf20ebf5aeb
Found a valid PHP in : /usr/bin
PHP Version : 5.6.25
Module API version : 20131226
Module directory : /usr/lib/php/extensions/no-debug-non-zts-20131226
Zend Thread Safety : no
CLI ini file : /etc/php.ini
Install Status : failed

Agent installation complete. The following php.ini files need to be
modified by hand to load the New Relic extension, enable
it, and configure it. A sample ini file fragment can be found at:

/Users/Djusstattoo/Downloads/root/scripts/newrelic.ini.template

Without performing this step the agent will not be loaded correctly. The
ini file(s) you need to modify are:

/etc/php.ini

FATAL: failed to copy new daemon into place
FATAL: New Relic agent installation failed.
Please contact http://support.newrelic.com
and report the above error. We have also created a tar file with
log files and other system info that can help solve the problem.
If the file /tmp/nrinstall-20161130-231155-89014.tar exists please attach it to your bug report.
We apologize for the inconvenience.
MacBook-Pro-de-Justin:root Djusstattoo$ sudo ./newrelic-install
Password:
ERROR: the following files could not be found:
/Users/Djusstattoo/Downloads/root/scripts/newrelic.ini.template

The New Relic installation directory is incomplete. The files or
directories listed above could not be found. This usually means that
you have a corrupt installation archive. Please re-download your New
Relic software and try again. If the problem persists, please contact
http://support.newrelic.com and report the issue. Be sure
to include all the above output in your bug report. We apologize for the
inconvenience.


#3

Are you trying to run this on a Mac? I don’t think the services support Mac.


#4

yess i use mac it doesn’t wor on mac is there a module like new relic that runs on mac?


#5

I have worked with Macs for 5 years in the past, I can give you a small number of reasons why you should avoid using a Mac to Program unless developing programs for a Mac but in the mean time a work around (Should be the way it’s done in general on all platforms):

Run a Linux VM on your machine using VargrantUP and you should be able to run this as if it was a localhost environment by port forwarding to the VM on your machine and mapping to the VM IP instead of “localhost”:

You should setup a Linux VM that is as close a replica of the target hosting service provider in every aspect of the LAMP/LEMP stack as you can to ensure that your programming is compatible before you upload.

Here are some issues I have experienced when working with co-workers on a Mac:

I have met 1 in 30 developers that use a Mac for programming, Because the numbers of Mac based programmers are so small, Not many people really bother making a variety tools for Mac making for limited options, That being said, Running a Linux VM resolves most issues but getting the support for achieving this is not great with a Mac.

Another issue I have found is that Macs can screw up repository file comparisons quite horribly making the job of code revision in merges and pull requests a total nightmare because Line Break and Padding points are not a cross compatible standard shared with the unison that Windows & Linux has.
Windows too has an issue posed for its users has the issue of case sensitivity in programming when publishing to a LAMP stack, Hence why Win users should too use a local LAMP stack VM.

Cross platform and competitor device testing is difficult on a Mac. One main issue is Web Browser USB debugging and driver availability for Mac in this area.

I have worked in 3 different businesses where Mac based programmers use have been forced to use Windows for Web Programming while graphic designers are happily left to use whatever platform they want. I now do this my self as a Team leader as the Mac based issues are worse than the Windows issues.


#6

The most likely cause here is SIP if you ar eusing a mac on OS X El Capitan +

https://docs.newrelic.com/docs/agents/php-agent/troubleshooting/php-installation-fails-os-x-1011-el-capitan

Unfortunately Mac’s SIP security can limit our ability to place files where needed in order for the installer to successfully complete. Hopefully the above link helps you get installed as required.