Tag Archives: FreeBSD

FreeBSD Jails

I’m thinking of offering FreeBSD jailed Apache servers as a middle ground between community hosting and dedicated servers. First step is to create my test of how it will work. Using my trusty HP MicroServer, I’ve installed a new(ish) disk … Continue reading

Posted in FreeBSD Administration | Tagged , , , | Leave a comment

Reset FreeBSD Default Quotas

We recently changed policy to make the default webspace quota 1GB (up from 100MB!) which I posted about previously. What I overlooked was in the dim and distant past I had set a default quota for new users with the … Continue reading

Posted in FreeBSD Administration | Tagged , | Leave a comment

Using .htaccess to Secure a Website

As promised, here are some .htaccess examples to help secure your web site. First off is preventing .php or other scripts from being run from within an ‘upload’ folder in the web space. You would expect images and in some … Continue reading

Posted in Apache, FreeBSD Administration | Tagged , , , | Leave a comment

File permissions for web developers

Here at the $dayjob we are often asked about file permissions by our customers who are developing websites. The main issues seem to be when a CMS system like Joomla or WordPress is being used, however these notes are relevant … Continue reading

Posted in Apache, FreeBSD Administration | Tagged , , , | Leave a comment

ZFS on FreeBSD – Disk Failures

This morning i’m looking into how ZFS on FreeBSD reacts to disk failure. Using the setup documented in the previous two posts (3 x 2TB HDDs in raidz). First task was to shut down the machine and pull one of … Continue reading

Posted in FreeBSD Administration | Tagged , , | Leave a comment

More ZFS on FreeBSD

After yesterday’s success with the ZFS configuration I’m hoping to perform some snapshots and get the compression to be a bit better. I was a bit disappointed with the compression ratio yesterday which was a pitiful 1.15x. I’ll be cheating … Continue reading

Posted in FreeBSD Administration | Tagged , , , | Leave a comment

ZFS on FreeBSD – Starting out

ZFS has been pasrt of FreeBSD since version 7.0 so as we’re now on the verge of version 9.0 being released I thought i’d better play catchup and make an effort to find out about ZFS. Firstly ZFS stands for … Continue reading

Posted in FreeBSD Administration | Tagged , , , , | Leave a comment

FreeBSD Quotas – bulk updates (using Perl)

Another day, another 63 pence (according to xe.com), and another potentially mind numbing repetitive FreeBSD admin operation. Todays request was to increase all of the web quotas to 1GB on a web server which has variable quotas set on a … Continue reading

Posted in FreeBSD Administration, Perl | Tagged , , , , , | Leave a comment

Upgrading Perl 5.10 to 5.12 on FreeBSD

So a customer asked to use the latest version of Perl on one of our web servers. Its Running FreeBSD 8.0 with Apache2.2 and Perl 5.10. The FreeBSD ports collection does not upgrade 5.10 to 5.12 with a normal upgrade … Continue reading

Posted in FreeBSD Administration, Perl | Tagged , , | Leave a comment

Notes on the Vacation program – multiple aliases

Is it possible to have multiple aliases with vacation? Yes! Imagine you have a sendmail setup with a virtusetable that looks like this: fred@domain_name.com fred fredrick@domain_name.com fred fred.bloggs@domain_name.com fred And you want to use vacation for an out of office … Continue reading

Posted in FreeBSD Administration | Tagged , , , | Leave a comment