Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@mbaur-pp-3237:/# dpkg -l | grep php
- ii libapache2-mod-php5 5.5.9+dfsg-1ubuntu4.20 amd64 server-side, HTML-embedded scripting language (Apache 2 module)
- ii php5-cli 5.5.9+dfsg-1ubuntu4.20 amd64 command-line interpreter for the php5 scripting language
- ii php5-common 5.5.9+dfsg-1ubuntu4.20 amd64 Common files for packages built from the php5 source
- ii php5-json 1.3.2-2build1 amd64 JSON module for php5
- ii php5-readline 5.5.9+dfsg-1ubuntu4.20 amd64 Readline module for php5
- root@mbaur-pp-3237:/# ls -la /etc/php5/mods-available/newrelic.ini
- ls: cannot access /etc/php5/mods-available/newrelic.ini: No such file or directory
- root@mbaur-pp-3237:/# ls -la /etc/php5/apache2/conf.d/newrelic.ini
- ls: cannot access /etc/php5/apache2/conf.d/newrelic.ini: No such file or directory
- root@mbaur-pp-3237:/# ls -la /etc/php5/apache2/conf.d/20-newrelic.ini
- ls: cannot access /etc/php5/apache2/conf.d/20-newrelic.ini: No such file or directory
- root@mbaur-pp-3237:/# echo 'deb http://apt.newrelic.com/debian/ newrelic non-free' | sudo tee /etc/apt/sources.list.d/newrelic.list
- deb http://apt.newrelic.com/debian/ newrelic non-free
- root@mbaur-pp-3237:/# wget -O- https://download.newrelic.com/548C16BF.gpg | sudo apt-key add -
- --2016-10-06 11:16:41-- https://download.newrelic.com/548C16BF.gpg
- Resolving download.newrelic.com (download.newrelic.com)... 151.101.12.207
- Connecting to download.newrelic.com (download.newrelic.com)|151.101.12.207|:443... connected.
- HTTP request sent, awaiting response... 200 OK
- Length: 1682 (1.6K) [application/octet-stream]
- Saving to: ‘STDOUT’
- 100%[===========================================================================================================================================>] 1,682 --.-K/s in 0s
- 2016-10-06 11:16:41 (285 MB/s) - written to stdout [1682/1682]
- OK
- root@mbaur-pp-3237:/# apt-get update
- .... (censored because of private URLs)
- Reading package lists... Done
- root@mbaur-pp-3237:/# sudo apt-get install newrelic-php5
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- The following packages were automatically installed and are no longer required:
- ruby-rgen ruby-safe-yaml
- Use 'apt-get autoremove' to remove them.
- The following extra packages will be installed:
- newrelic-daemon newrelic-php5-common
- The following NEW packages will be installed:
- newrelic-daemon newrelic-php5 newrelic-php5-common
- 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
- Need to get 0 B/8,206 kB of archives.
- After this operation, 24.6 MB of additional disk space will be used.
- Do you want to continue? [Y/n]
- Preconfiguring packages ...
- Selecting previously unselected package newrelic-php5-common.
- (Reading database ... 22277 files and directories currently installed.)
- Preparing to unpack .../newrelic-php5-common_6.7.0.174_all.deb ...
- Unpacking newrelic-php5-common (6.7.0.174) ...
- Setting up newrelic-php5-common (6.7.0.174) ...
- Selecting previously unselected package newrelic-daemon.
- (Reading database ... 22290 files and directories currently installed.)
- Preparing to unpack .../newrelic-daemon_6.7.0.174_amd64.deb ...
- Unpacking newrelic-daemon (6.7.0.174) ...
- Processing triggers for ureadahead (0.100.0-16) ...
- Setting up newrelic-daemon (6.7.0.174) ...
- Processing triggers for ureadahead (0.100.0-16) ...
- Selecting previously unselected package newrelic-php5.
- (Reading database ... 22298 files and directories currently installed.)
- Preparing to unpack .../newrelic-php5_6.7.0.174_amd64.deb ...
- Unpacking newrelic-php5 (6.7.0.174) ...
- Setting up newrelic-php5 (6.7.0.174) ...
- Please restart your Web server(s) to complete installation.
- root@mbaur-pp-3237:/# ls -la /etc/php5/mods-available/newrelic.ini
- -rw-r--r-- 1 root root 31930 Oct 6 11:17 /etc/php5/mods-available/newrelic.ini
- root@mbaur-pp-3237:/# ls -la /etc/php5/apache2/conf.d/20-newrelic.ini
- lrwxrwxrwx 1 root root 33 Oct 6 11:17 /etc/php5/apache2/conf.d/20-newrelic.ini -> ../../mods-available/newrelic.ini
- root@mbaur-pp-3237:/# ls -la /etc/php5/apache2/conf.d/newrelic.ini
- ls: cannot access /etc/php5/apache2/conf.d/newrelic.ini: No such file or directory
- root@mbaur-pp-3237:/# sudo newrelic-install install
- New Relic PHP Agent Installation (interactive mode)
- ===================================================
- Enter New Relic license key (or leave blank): EoriaduieYY2DB5qixMAvgFtsJDfJKJ4Lyp5mFPA
- Found a valid PHP in : /usr/bin
- PHP Version : 5.5.9-1ubuntu4.20
- Module API version : 20121212
- Module directory : /usr/lib/php5/20121212
- Zend Thread Safety : no
- CLI ini directory : /etc/php5/cli/conf.d
- DSO ini directory : /etc/php5/apache2/conf.d
- Install Status : /etc/php5/cli/conf.d/newrelic.ini created
- Install Status : /etc/php5/apache2/conf.d/newrelic.ini created
- Install Status : OK
- New Relic is now installed on your system. Congratulations!
- 1. Set newrelic.appname in your newrelic.ini file.
- 2. Restart your web server. This will fix most reporting issues and
- load the agent's new features and bug fixes.
- If you have questions or comments, go to http://support.newrelic.com.
- root@mbaur-pp-3237:/# ls -la /etc/php5/mods-available/newrelic.ini
- -rw-r--r-- 1 root root 31930 Oct 6 11:17 /etc/php5/mods-available/newrelic.ini
- root@mbaur-pp-3237:/# ls -la /etc/php5/apache2/conf.d/20-newrelic.ini
- lrwxrwxrwx 1 root root 33 Oct 6 11:17 /etc/php5/apache2/conf.d/20-newrelic.ini -> ../../mods-available/newrelic.ini
- root@mbaur-pp-3237:/# ls -la /etc/php5/apache2/conf.d/newrelic.ini
- -rw-r--r-- 1 root root 31930 Oct 6 11:19 /etc/php5/apache2/conf.d/newrelic.ini
- root@mbaur-pp-3237:/# grep "extension.*newrelic*" /etc/php5/apache2/conf.d/*
- /etc/php5/apache2/conf.d/20-newrelic.ini:extension = "newrelic.so"
- /etc/php5/apache2/conf.d/newrelic.ini:extension = "newrelic.so"
- root@mbaur-pp-3237:/# grep "extension.*newrelic*" /etc/php5/cli/conf.d/*
- /etc/php5/cli/conf.d/20-newrelic.ini:extension = "newrelic.so"
- /etc/php5/cli/conf.d/newrelic.ini:extension = "newrelic.so"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement