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.

Adding custom modules to Nginx RPM

If you’ve installed Nginx from source, adding custom modules is easy. You simply recompile Nginx and include the module you want. But what if you’ve installed Nginx from RPM? How do you install custom module in this case? Well, you’ll need to repackage RPM and although it may sound really complicated, it’s not that big of a deal.

Nginx maintenance page with 503 HTTP status code

The other day I had to do some maintenance on a server with Nginx configured as a reverse proxy for Apache. The configuration was very simple - Nginx was in front of Apache and it served static content. Apache in the back was responsible for PHP stuff.

Etherpad Lite up 'n' running in 5 minutes

Etherpad Lite is a lightweight version of (probably) the most popular web-based collaborative real-time editor - Etherpad. This great peace of software allows multiple users to edit the same document in real-time. To make collaboration easier, users have built-in chat at their disposal.