Note to self: if you want to install a port from the FreeBSD ports collection and you want to avoid the configuration menu that some ports use, then set the BATCH build variable.
For example, to install Apache 2.2 with the default configuration, use this:
cd /usr/ports/www/apache22 && make BATCH=1 install clean
Handy for scripting. More detail in the [FreeBSD porter’s handbook][1]
[1]: http://www.freebsd.org/doc/en/books/porters-handbook/book.html#SLOW-USER-INPUT