mod_unique_id: unable to gethostbyname

Yes, that message display when I try to start apache inside my jail box.

 [Thu Jul 10 13:23:41 2008] [alert] mod_unique_id: unable to gethostbyname(”mailserver”)

To resolve this problem, just edit /etc/hosts

add record for ‘mailserver’ entry, like :

::1                     localhost               localhost     mailserver

Restart apache and test it yourself.

Step by Step Install AtMail Open On FreeBSD

AtMail Open, I just know if atmail have free version.

Being curious on how it goes in FreeBSD box, I give it a try as my campus interface.

As usual I try to record it in notepad plus screenshot for guide, perhaps useful 🙂

1. Download latest version

mail# wget

2. Extract and change ownership

mail# tar xvzf atmailopen.tgz

mail# chown -R www:www atmailopen

3. Create database and grant access

mail# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or

Your MySQL connection id is 35030
Server version: 5.0.51a-log FreeBSD port:


Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the


mysql> create database atmail;
Query OK, 1 row affected (0.00 sec)

mysql> grant all privileges on atmail.* to

[email protected] identified by ‘atmailpass’ with grant

Query OK, 0 rows affected (0.05 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.04 sec)

Continue reading

in Unix | 302 Words

Step by step install wpmu in FreeBSD

A client need to install wordpress multi user to teach their employee about blog. They want it installed in their server, running FreeBSD 7 stable.

Here’s step by step install wpmu in FreeBSD, might be useful for someone 🙂

1. Download latest wpmu file.


2. Extract and  rename

phantom# pwd

phantom# ls
info.php        latest.tar.gz

phantom# rm latest.tar.gz && mv wordpress-mu-1.5.1 wpmu

phantom# ls
info.php        wpmu
Continue reading

Find out Hard Disk position on FreeBSD

I just replace first HD in our email server with new one, little HD to replace 500GB HD 🙂
Until I forgot to copy important file in old HD to new one.
My friend ask me to show my way to find out hard disk location in FreeBSD.

System layout before put old HD :

email# df -H
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ad4s1a    2.1G     40M    1.9G     2%    /
devfs          1.0k    1.0k      0B   100%    /dev
/dev/ad4s1d     21G    403k     19G     0%    /home
/dev/ad4s1f     40G    2.0G     35G     5%    /usr
/dev/ad4s1e     10G     60M    9.5G     1%    /var
/dev/ad5s1d    484G    102G    344G    23%    /email
/dev/ad6s1d    484G    3.8G    442G     1%    /email2

My first method is : dmesg

email# dmesg
ad4: 76319MB <Seagate ST380215AS 4.AAB> at ata2-master SATA150
ad5: 476940MB <Seagate ST3500320AS SD15> at ata2-slave SATA150
ad6: 476940MB <Seagate ST3500630AS 3.AAK> at ata3-master SATA150
ad7: 476940MB <Seagate ST3500320AS SD15> at ata3-slave SATA150

Yes, ad7. Last added HD detected as ad7

Second method : sysinstall

Continue reading

in Unix | 358 Words

Looking up mirrors… none found.

I often to see that message but finally I found my mistake 🙂

My mistake is….

I try only once, think if the chance not succeed in first attempt it means I fail.

Definitely wrong :

email# freebsd-update fetch
Looking up mirrors… none found.
Fetching public key from… failed.
No mirrors remaining, giving up.
email# freebsd-update fetch
Looking up mirrors… none found.
Fetching public key from… failed.
No mirrors remaining, giving up.
email# freebsd-update fetch
Looking up mirrors… 1 mirrors found.
Fetching public key from… done.
Fetching metadata signature for 6.3-RELEASE from… done.
Fetching metadata index… done.
Fetching 2 metadata files… done.
Inspecting system… done.
Preparing to download files… done.
Fetching 14 patches. done.
Applying patches… done.
Fetching 14 files…

Fu..fu..fu, my fault guys 🙂

Ready for freebsd-update install command.

in Unix | 148 Words