How to remove VirtFS like a boss

Recently I was unfortunate to witness huge filesystem loop on a cPanel server that was caused by combination of VirtFS and Idera’s Server Backup software (previously known as R1soft CDP backup). To cut the chase, I had to disable and remove VirtFS for all users on the server.

Fixing timeout between Nginx and PHP-FPM

In case you’ve set up Nginx as reverse proxy for PHP-FPM and you have very slow or complex PHP script that executes for quite some time, you’ve probably seen an 504 gateway time-out error. This is pretty common error, but in most cases people are barking at the wrong tree and they’re having difficulties finding out which timeout directive is the right one for their scenario.

Exim ACL for blocking certain senders

If you’re in a need for fast and simple solution to block certain senders directly on Exim mail server, you’re in luck. Couple of weeks back I needed to blacklist a spammer on a relay mail server, so that I could take my time and carefully trace the origin server/script from where the spam was being sent.

AWStats - poor man’s download counter

A few days ago I was asked to configure AWStats to count downloads of .exe files on an website. I know that it’s blindingly obvious that AWStats isn’t the right tool for this job, but sometimes you have to pick battles with your clients.

Change passwords for multiple cPanel accounts (bulk password reset)

The other day I needed to change passwords for multiple cPanel accounts. Since there was a lot accounts in question, changing passwords manually was out of the question. Changing passwords from shell using passwd utility was also out of the question because that would change only the password for Unix user - MySQL and FTP passwords would remain unchanged.