“MySQL server has gone away” error – Solution(s)

MySQL server has gone away error means that MySQL server (mysqld) timed out and closed the connection. By default, MySQL will close connections after eight hours (28800 seconds) if nothing happens. However, in some cases your web host, DBA or app developer may have decreased this timeout setting, discussed below. MySQL server has gone away, can be […]

How to Convert OpenSSH keys to Putty (.ppk) on Linux

PuTTYgen is an key generator for creating SSH keys for PuTTY. PuTTYgen is comparable in certain respects to the ssh-keygen tool. PuTTYgen can be used to create public and private key pairs (in .ppk file format). In addition, PuTTYgen can also be used to convert keys to and from other formats. On Windows PuTTYGen is a graphical tool. A command-line version is available for […]

I refuse to sign up for Viber, here’s why.

Update Jun 3rd 2019: Please note, Viber and all data sold to Japanese company. Viber has surpassed Whatsapp in Russia with over 100 million users. Update: Over the past couple of months Viber has been modifying their privacy policy to help increase user confidence. However, unlike other apps, which only scan your contacts. Viber continues to scan […]

Replacing getty with ngetty on Debian

This article was originally posted back in October 2013. As such, I’ve updated it, since the current Debian release, Debian 9, no longer uses init, but instead uses systemd. Systemd is a system and service manager for Linux. It is the default init system for Debian since Debian 8 (Jessie).  ngetty or mingetty may be useful for […]

25 Best CDN Providers 2019

A content delivery network, also referred to as a content distribution network (CDN) is a geographically distributed network of data centers containing proxy servers. CDN Providers serve Internet content, including web objects (text, graphics and scripts), downloadable objects (media files, software, documents), applications (e-commerce, portals), live streaming media, etc… closer to and thus faster, to end users. Some of the main advantages […]

Pruning Magento Cache & Sessions Using Cron

Note: Magento 1.x only. Over the weekend a client contacted me because they had serious performance issues with their Magento based store. The three main issues were: Checkout taking more than 30 seconds to complete after clicking to submit payment. (Causing double orders/payments and users just leaving the store) Login to the front or back end […]

20 Top Server Monitoring & Application Performance Monitoring Solutions

UPDATE: 50 Top Server Monitoring & Application Performance Monitoring (APM) Solutions Last Update – Fixed broken links. (including defunct, mergers, acquisitions, or changed links) Back in September I wrote about an article than touched on the subject of server performance monitoring.  Then just last month a LinkedIn connection asked: “I am using New Relic to monitor my cloud servers […]

PHP Performance: Additional CPU cores or Faster CPU cores

  Some time ago I received an email from a client experiencing slow performance issues with a LEMP (Linux, Nginx, MySQL and PHP web server). During a full audit, I found that the server’s load average was pretty low (see above screenshot). However, the website was indeed very slow. There were some misconfigurations, but one […]

PHP-FPM tuning: Using ‘pm static’ for max performance

Lets take a very quick look at how best to setup PHP-FPM for high throughput, low latency and a more stable use of CPU and memory. By default, most setups have PHP-FPM’s PM (process manager) string set to dynamic and there’s also the common advice to use ondemand if you suffer from available memory issues. However, lets compare the two management […]

Set PHP realpath_cache_size ‘correctly’

Back in 2012 I started enabling PHP realpath_cache_size and realpath_cache_ttl for the performance benefits. At the time, I followed settings I found here (has since been deleted). It bugged me that I was blindly setting the size of the cache without actually knowing how much storage was being used. In this post I will show you how to […]