Not Enough Free Disk Space for Ubuntu Software Updater

After using Ubuntu 14.04 for a little while I got a worrying message from the Software Updater saying “Not enough disk space. The upgrade needs a total of x M free on disk ‘/boot’. Please free at least an additional xxx k of disk space on ‘/boot’. Empty your trash and remove temporary packages of former installations using ‘sudo apt-get clean’.

Continue reading ‘Not Enough Free Disk Space for Ubuntu Software Updater’ »

You Should Use Your Own DNS Server With Spamhaus

If you’re running your own small mail server it’s quite possible that you’ll want to make use of Spamhaus’ free DNSBL to reduce spam email. However, if you are using your web host’s DNS servers (which is the default) it’s likely that Spamhaus will not work because the DNS will have exceeded the free usage limit. Find out how to use your own DNS server and start using Spamhaus.

Continue reading ‘You Should Use Your Own DNS Server With Spamhaus’ »

Extract Domain Name From Hostname in PHP

When fighting spammers or other unwanted traffic it’s useful to be able to block a top level domain, such as ukhost4u.com or uk2.net. This needs to be extracted from the full hostname, which might be something like 123-456-789-10.ukhost4u.com. To do that you’ll need a combination of a PHP built-in function and a regular expression.

Continue reading ‘Extract Domain Name From Hostname in PHP’ »