• Home
  • WordPress
  • web Hosting
    • Free hosting
    • Cheap Hosting
    • comparison cloud , vps, shared, wordpress
    • managed wordpress hosting
    • managed cloud hosting
  • page Speed
  • Deals
  • Services
  • About

RAaz Kumar .com

wordpress tutorials seo hosting etc


new relic php agent install in 3 steps

login and create new rellic account

prerequisites:
>> install new relic infrastructure agent

Add new relic repository to ubuntu

echo ‘deb http://apt.newrelic.com/debian/ newrelic non-free’ | sudo tee /etc/apt/sources.list.d/newrelic.list
truest the key
wget -O- https://download.newrelic.com/548C16BF.gpg | sudo apt-key add –

Update the local package list:

sudo apt-get update
new relic php fpm monitor

install newrelic php agent

sudo apt-get -y install newrelic-php5
works for php but not works for php 8
remove if old with config file
sudo apt-get -y remove –purge newrelic-php5
Please restart your Web server(s) to complete installation.
root@-s-4vcpu-8gb-blr1-01:/etc/php#

Finish installing the agent:

sudo NR_INSTALL_SILENT=1 newrelic-install install
root@-s-4vcpu-8gb-blr1-01:~# sudo NR_INSTALL_SILENT=1 newrelic-install install
Note: if you enter the license key while installing no need below steps, you can go app and php >> (skip installation and check the data)

Configure your license key and application name

sed -i -e “s/REPLACE_WITH_REAL_KEY/e28947ef70ff6b7baaf50291de3d341c8069NRAL/” \
-e “s/newrelic.appname[[:space:]]=[[:space:]].*/newrelic.appname=\”newwwww\”/” \
-e ‘$anewrelic.distributed_tracing_enabled=true’ \
$(php -r “echo(PHP_CONFIG_FILE_SCAN_DIR);”)/newrelic.ini
REPLACE_WITH_REAL_KEY
Account 3034122
sed -i -e “s/3034122/e28947ef70ff6b7baaf50291de3d341c8069NRAL/” \
-e “s/newrelic.appname[[:space:]]=[[:space:]].*/newrelic.appname=\”newwwww\”/” \
-e ‘$anewrelic.distributed_tracing_enabled=true’ \
$(php -r “echo(PHP_CONFIG_FILE_SCAN_DIR);”)/newrelic.ini
newrelic installation 

Edit newrelic php conf ini

nano /etc/php/7.4/fpm/conf.d/

;newrelic.enabled = true

newrelic.license = “REPLACE_WITH_REAL_KEY”

 

/etc/phpX.Y/conf.d/newrelic.ini
cd /etc/php/7.4/fpm/conf.d/newrelic.ini
cat /etc/php/7.4/fpm/conf.d/newrelic.ini
cd /etc/php/7.4/conf.d/newrelic.ini
cat /etc/php/7.4/conf.d/newrelic.ini

Restart your application

service php7.4-fpm restart
Check for data
Listening for your data…
Data received successfully.

restart newrelic agent if necessary

service newrelic-infra restart
service newrelic-infra status
systemctl restart newrelic-daemon && systemctl restart php7.4-fpm

uninstall new relic php agent

sudo apt-get -y purge newrelic-php5
$ sudo apt-get autoremove

Troubleshooting errors

if you have php 7.4 and php 8 then remove php 8 or either one of them
apt-get purge php8.0
apt-get purge php8.1

ERROR: unsupported version ‘8.0.3’ of PHP found at:
/usr/bin
Ignoring this particular instance of PHP.

 

Remove php 8 fpm

apt-get purge php8.0-fpm  && apt-get auto-remove
sudo NR_INSTALL_SILENT=1 newrelic-install install

PHP Warning:  Module ‘newrelic’ already loaded in Unknown on line 0

remove new relic existing module

newrelic-25

newrelic in every php & apache directory.

 

new relic php fpm monitoring metrics

 

new relic php not receiving data

new relic- APm

 

php agent log
info: attempt daemon connection via ‘@newrelic’
2021-05-14 14:39:00.913 +0000 (24081 24081) info: New Relic 9.17.1.301  (“xigua” – “6498785b65c7”) [daemon=’@newrelic’  php=’8.0.3′ zts=no  sapi=’cli’  pid=24081 ppid=24045 uid=0 euid=0 gid=0 egid=0 backtrace=yes  startup=agent os=’Linux’ rel=’4.15.0-140-generic’ mach=’x86_64′  ver=’#144-Ubuntu SMP Fri Mar 19 14′ node=’-s-4vcpu-8gb-blr1-01′]
removing “php-wordpress” with run id  “BX_xROK_NpQYAC5MCk55UChgnov8AAMBAAAnIQEAAFzpAgROeVAlAwAKOS4xNy4xLjMwMQAULXMtNHZjcHUtOGdiLWJscjEtMDEADXBocC13b3JkcHJlc3M” for lack of activity  within 10m0s
warning: User instrumentation from opcache: missing ‘scripts’ key in status information

Related topics:

  1. new relic installation linux (infrastructure agent , php, mysql , nginx)
  2. new relic mysql install integration – 2 ways fix problems
  3. uninstall apache2 ubuntu in 3 steps Debian
  4. how to uninstall package in linux ubuntu rpm, yum apt-get
  5. top 10 apt & apt-get commands (most used) apt vs apt-get

tutorials

  • Vivek Bindra Videos Transcription (business strategy)
  • git commands
  • new relic php agent install in 3 steps
  • new relic mysql install integration - 2 ways fix problems
  • new relic installation linux (infrastructure agent , php, mysql , nginx)
  • xampp tutorials 2021 installation errors fix wordpress phpmyadmin mysql apache
  • Redis performance metrics & tuning for nginx apache ubuntu & debian
  • Devops course Syllabus topics PDF AWS, Azure, cisco, redhat
  • CCNA Syllabus pdf (CCNA / CCNP vs devops vs mcsa /MCSE)
  • how to create a website free of cost on google
  • what is vpn vs proxy vs tor, http vs https, http2, tcp vs udp, kali linux sql source code injection
  • nginx server tutorials (installation, configuration, performance tuning, security)
  • MySQL Tutorial (create,connect database, update tables, export etc) Documentation & TIPS
  • AUdio Editing Background Noise removal (Audacity, Adobe Premiere Addition, Camtasia Filmora Windows Obs)
  • Android Studio tutorials syllabus Topics Course details #AndroidApplicationDevelopment
  • [INTRO] Ethical hacking / cyber Security / Penetration testing Tutorial -{updates frequently}
  • redis install ubuntu 20.04 with wordpress php redis mysql configuration
  • ubuntu tutorials installation download issues etc
  • Php tutorials
  • HTML & CSS Tutorials
  • Core Java Tutorial Free online
  • Linux sysadmin tutorials linux system administrator
  • apache server tutorial (install,config, performance tuning, security, error handling)

 

 

wordpress Pagespeed optimization

Digitalocean free $100 Credit

Cloudways Review pricing promo codes

Siteground cpu limits Pricing

Shared Hosting

Managed wordpress Hosting

Managed Hosting Cloud server

VPS Hosting

Cloud Hosting – Unmanaged

Google cloud Pricing

Aws Pricing

Azure pricing

nginx server tutorials

apache server tutorials

linux sysadmin tutorials

mysql Commands list pdf

LEMP Install Ubuntu

Mysql Performance Tuning

Nginx Performance tuning

Linux Performance tuning

Php -fpm performance tuning

Redis Performance tuning

linux server security

nginx security best practices

wordpress security plugins

 

 

wordpress

 

Top 5  WP Google Analytics Plugins

WP Backup Plugins

Wp Comment Plugins

Top wordpress Security Plugins

WP Seo Plugins

WP Caching Plugins

Best Adsense Plugins for WordPress

Wp social Sharing Plugins

autoshare social media plugins

WP speed Optimization Plugins

Speedup WordPress google Score

More Wp tuts

Server Admin Cloud

 

Installing Nginx LEMP On ubuntu

Installing apache Lamp ubuntu

nginx fastcgi cache enable

php – fpm install  & Configuration

Opcache install & Configure

php -fpm pool manager explained

Mysql Install & Configuration

Redis Object cache install & configure

 

Nginx as Reverse Proxy and Load balancer

Load Balance / auto scaling in google cloud

Linux Commands PDF

Mysql Commands Pdf

Letsencrypt tutorial

mysqldump export & import 

Pagespeed Module install & configure

nginx.conf best file

mysql.conf best file

upgrade ubuntu

© 2023 - All Rights Reserved Disclaimer & Privacy Policy