Linux Commands frequently used by Linux Sysadmins – Part 1

What are some of the Linux commands used by Sysadmins and power users daily? In this article, I’ve listed 10 such commands frequently used. Suggestions, and feedback welcome. Also, see Part 2, Part 3, Part 4, and Part 5. Some people consider Linux to be a complicated operating system, geared toward expert users only. However, as […]

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

The 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 […]

Analyze Your Website’s TTFB (Time to First Byte)

Have you improved the load time of your websites and web applications recently? Or, maybe your web store or other web app is now slower to respond as you’ve added more features or due to data growth? The time it takes for your web applications to respond when users visit is more important than ever […]

Redis Monitoring: Redis-stat and other Redis tools

Popular web services such as Twitter, GitHub, Pinterest, Snapchat, StackOverflow, and others use Redis (Remote dictionary server) because of its ability to deliver small pieces of information VERY quickly. Similar to Memcached, Redis stores data in memory. When compared to Memcached, Redis can do a lot more. This post contains an updated list of the […]

PHP performance: oPcache Control Panels

OPcache is a PHP extension that improves PHP performance by storing precompiled script bytecode in shared memory, thereby removing the need for PHP to load and parse scripts on each request. The extension is built-in for PHP 5.5+. If you are looking to improve PHP performance, the first step should be to use PHP 7.4+, […]

Generating Secure Passwords for your Linux Server

Sysadmins will often have to set up new servers or harden existing server passwords during security audits. As a result, secure passwords have to be chosen for SFTP, admin panels, etc. Many practices make a server secure, but often neglected is using secure passwords. Notice that I didn’t include SSH or MySQL root passwords above. […]

How to Enable Unattended Upgrades on Ubuntu/Debian

Linux server security is of critical importance to sysadmins. One central part of keeping Linux servers secure is by installing security updates promptly. Too often, there are compromised servers on the internet due to pending security updates waiting for a manual update. On both Ubuntu and Debian, the unattended-upgrades package can be configured to perform […]

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

Let’s take a very quick look at how best to set up PHP-FPM for high throughput, low latency, and 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, let’s compare the two management […]