Migrating CentOS 6 to PHP 5.5

I make the assumption that you’re running PHP 5.3 (the currently newest PHP version officially available in CentOS 6) or perhaps PHP 5.4.

The switch can, theoretically, be done on live system – just prepare yourself for a bit of hiccups here and there (or perhaps even serious downtime).

Enable hibernation in Xubuntu 16.04

Ubuntu (and its derivatives – Xubuntu, Lubuntu, Kubuntu) normally come with hibernation disabled by default, mostly due to possible hardware compatibility issues.

Re-enabling it is not a simple thing to do, despite logic dictating the opposite. Start by testing out whether or not your system is capable of hibernation…

Automatically restart Webmin/Virtualmin in case of failure

Running out of memory sometimes happens on swap-less VPSes, and it seems Webmin (together with its twin, Virtualmin) are among the first processes to die in out-of-memory cases.

Setting up a little script to check for and restart Webmin if it is no longer running is a pretty simple (workaround) solution – but should never replace the proper procedure of adjusting the settings or upgrading the VPS to avoid running out of memory in the future.

How to exclude subfolder from password protection with .htaccess

You sometimes need to password protect a folder or an entire account/website from direct access. That’s easily done with the appropriate .htaccess file in the protected folder plus the mandatory .htpasswd file with the correct user and password combination(s).

But what do you do when you want to enable direct access to a subfolder of the protected folder?

Emails not visible on freshly installed CentOS 6 with Virtualmin

Main symptom of a problem is that emails are visible in the Read User Mail utility in Webmin but they do not show up in either webmail (Roundcube/Squirrelmail), Usermin or any email client configured to connect to the server.

After further inspection, it appears the emails get delivered to /var/mail/usermailbox@domain.tld instead of /home/username/homes/usermailbox/Maildir.