Auto restart newrelic-daemon if crashed

On a web server with Newrelic APM installed, graph stopped showing new data. On checking the newrelic log file, i get following error

This is because newrelic-daemon stopped working. To auto restart newrelic-daemon if it crash, do the following

Add following to the file

Make the script executable

Create a cronjob […]

Read More…

Moving from Apache PHP 5 to Nginx PHP 7

Today i moved a high traffic WordPress web using from Apache + PHP 5 to Nginx + PHP 7.2. Here is a graph provided by LiquidWeb (server provider). With Apache, load was like 8. [email protected]:/etc/php# uptime 12:35:01 up 14:33, 1 user, load average: 8.03, 6.66, 5.84 [email protected]:/etc/php# After switching to Nginx + PHP-FPM, load come […]

Read More…