Install Icinga with MySQL and IDOUtils on FreeBSD

Posted by: gdelmatto  :  Category: FreeBSD, Networking, Operating Systems, Utilities

It’s not hard to install Icinga on FreeBSD, at least if you’re satisfied with default options.
Should you however require Icinga with IDOUtils and MySQL support, then you need to take additional steps.

Read more…

Fixing “Cannot find autoconf” error while building PHP extension from a FreeBSD port

Posted by: gdelmatto  :  Category: FreeBSD, Operating Systems, PHP

Today I had to add the PHP ‘bcmath’ extension to my FreeBSD host.
Actually, that’s a fairly easy one-liner:


[root@localhost ~]# cd /usr/ports/math/php5-bcmath && make clean install

However, I ended up with a crude error message:

Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.

Bummer! So let’s see how to fix this.
Read more…

World IPv6 Day and how to connect FreeBSD through a Teredo Tunnel

Posted by: gdelmatto  :  Category: FreeBSD, IPv6, Networking

It has finally arrived, the World IPv6 Day!

So you don’t have native IPv6 network access? No problem, just use a Teredo Tunnel to get connected.
Here’s a very short primer on doing so on FreeBSD.
Read more…

Setting up Redmine on FreeBSD

Posted by: admin  :  Category: FreeBSD, HowTo's, Programming, Utilities

“Redmine is a flexible project management web application. Written using Ruby on Rails framework, it is cross-platform and cross-database.” (redmine.org)

Here’s my short primer on setting up Redmine on FreeBSD.
Read more…

Adding a SCSI disk enclosure to a FreeBSD host in online mode

Posted by: admin  :  Category: FreeBSD, Hardware

Currently playing around with my Netra T1 105 and a Sun StorEdge Multipack enclosure, I wondered if I really could add the whole enclosure while the host is online.

I used to do hot-plugging before, but I’ve never done this with a whole enclosure at once. Well worth a try?
Read more…

Use Sparse Files for FreeBSD jails?

Posted by: admin  :  Category: FreeBSD, Operating Systems, Virtualization, jails

Thinking about FreeBSD jails and an elder post of mine about putting jails within loopback-mounted disk images to enforce disk quota, I asked myself if I should use sparse files or pre-allocated files as virtual disk image for jail-based userland separation.
Read more…

Apache 2.2 pretends on missing IPv6 support in FreeBSD

Posted by: admin  :  Category: FreeBSD

Today I faced a very issue with Apache 2.2 in FreeBSD.

Despite having it compiled with IPV6 support enabled, it pretended in missing IPv6 support, throwing this error message at me.
Read more…

Strange compilation error on MySQL

Posted by: admin  :  Category: FreeBSD, Programming

Yesterday I started digging around for a solution to create per-user or per-database statistics on MySQL, one of the more important peaces I was missing from it for a long time.

Luckily enough, some guys over there had already done some work on this topic, so I wouldn’t have to start over from scratch :-)

Read more…

Is RAID1 possible on an USB stick?

Posted by: admin  :  Category: FreeBSD, HA

Last week we had a discussion at the office wether it would possible to span a RAID across USB sticks.
That question came up as a joke while I was working on some RAID system for evaluation purposes.
Well, my friend doubted it when I replied that it would definitely work out with a FreeBSD software RAID using gmirror (geom vinum as a matter of fact works, too).

Proof?
Read more…

ufs_dirbad panic with mangled entries in ufs

Posted by: admin  :  Category: FreeBSD

FreeBSD’s ufs usually does an excellent job in preventing file system corruption. But even the best system happens to mess up once in a while.

One thing you may eventually stumble accross are so called mangled entries, which are usually not fixable with fsck and result in kernel panics upon access.
Read more…