After lots of trials and errors, this is what worked for me, hope it saves someone else time.
How To Freebsd 9.1 Directadmin Install
First Install FreeBSD - MINIMUM INSTALL ONLY!!!
check http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/bsdinstall.html freebsd 9 installation handbook
Make sure you DO NOT install 32 bit binaries!!! This runs you into trouble with Directadmin
Freebsd 9.1 partition structure:
Partition Type Size Mountpoint Label
freebsd-boot 512K
freebsd-ufs 2G /
freebsd-swap 16G
freebsd-ufs 30G /var
freebsd-ufs 4G /tmp
freebsd-ufs 30G /usr
freebsd-ufs remainder of disc /home
**** SPECIAL NOTICE for FreeBSD non-root ssh logins ****
You *must* add "AllowUsers username" to /etc/ssh/sshd_config before you log out from root or you'll lose root on the server forever, and you'll have to format.
On VPS: Make snapshot so the above steps are easy to replicate in case you need to.
Now update the ports on your box:
run the following commands:
# portsnap fetch
# portsnap extract
# portsnap update
When your ports are up to date, move on to:
Preinstall before Direcatadmin
Install ports below before Directadmin install:
(gcc and g++ are required to compile apache and php)
To find a port, use "whereis portname" on commandline
or use find / -name portname
Then go to port location and: make install clean
Here are the ports and locations that need installing:
ssh: installed during freebsd install
gcc: /usr/ports/lang/gcc
g++: included in gcc
perl: included in gcc
gmake: included in gcc
opensssl-devel: /usr/ports/security/openssl
wget: /usr/ports/ftp/wget
bison: /usr/ports/devel/bison
flex: /usr/ports/textproc/flex
gd: /usr/ports/graphics/gd
cyrus-sas12: /usr/ports/security/cyrus-sasl2
libidn: /usr/ports/dns/libidn
The above takes a while, relax and have a cuppa!
Next download the directadmin setup.sh file
# fetch http://www.directadmin.com/setup.sh
Change permissions on the setup.sh file
# chmod 755 setup.sh
Now run the setup script!
# ./setup.sh
You will be prompted for a client ID number, license ID number, and hostname.
Important: The hostname should not be the same as the primary domain name. e.g. gary.com is not a good hostname, where server.gary.com is. Having the same host/main domain name will cause e-mail and FTP problems. Also, please make sure the hostname resolves once you setup DNS.
!!! Make sure you use custombuild 1.2, because version 2 is in beta and installs apache 2.4 which does not work well yet on freebsd 9.1 per december 20 2012, date of this How To
=========INSTALLATION TROUBLES============
If you've just finished a DirectAdmin install and are trying to start apache, but you get the error:
Syntax error on line 21 of /etc/httpd/conf/extra/httpd-vhosts.conf: Could not open configuration file /etc/httpd/conf/ips.conf: No such file or directory
this means that the ips.conf is missing. The cause is usually that the DirectAdmin install didn't actually finish.
In that case, to finish the install, type:
cd /usr/local/directadmin
./directadmin i
./directadmin p
which is the last step of the DA install.
In case something in custombuild didn't compile correctly. Type the following:
cd /usr/local/directadmin/custombuild
./build all d
and check for errors in the last few pages of output if it stops prematurely.
=============VPS Settings DA===================
Special notice for VPS/VDS installs:
After the install, add:
ethernet_dev=devicename to /usr/local/directadmin/conf/directadmin.conf
type: /sbin/ifconfig to see which device your IP is on.
Replace devicename with the FULL devicename reported by ifconfig. If your VDS/VPS system emulates eth0, then you may skip this step.
FreeBSD 9.1 may require an exim rebuild (for me it did):
Use custombuild for that:
cd /usr/local/directadmin/custombuild
./build update
./build set exim yes
./build exim
Restart exim, and you're done.
This is what worked for me on december 20th 2012
Good luck!
How To Freebsd 9.1 Directadmin Install
First Install FreeBSD - MINIMUM INSTALL ONLY!!!
check http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/bsdinstall.html freebsd 9 installation handbook
Make sure you DO NOT install 32 bit binaries!!! This runs you into trouble with Directadmin
Freebsd 9.1 partition structure:
Partition Type Size Mountpoint Label
freebsd-boot 512K
freebsd-ufs 2G /
freebsd-swap 16G
freebsd-ufs 30G /var
freebsd-ufs 4G /tmp
freebsd-ufs 30G /usr
freebsd-ufs remainder of disc /home
**** SPECIAL NOTICE for FreeBSD non-root ssh logins ****
You *must* add "AllowUsers username" to /etc/ssh/sshd_config before you log out from root or you'll lose root on the server forever, and you'll have to format.
On VPS: Make snapshot so the above steps are easy to replicate in case you need to.
Now update the ports on your box:
run the following commands:
# portsnap fetch
# portsnap extract
# portsnap update
When your ports are up to date, move on to:
Preinstall before Direcatadmin
Install ports below before Directadmin install:
(gcc and g++ are required to compile apache and php)
To find a port, use "whereis portname" on commandline
or use find / -name portname
Then go to port location and: make install clean
Here are the ports and locations that need installing:
ssh: installed during freebsd install
gcc: /usr/ports/lang/gcc
g++: included in gcc
perl: included in gcc
gmake: included in gcc
opensssl-devel: /usr/ports/security/openssl
wget: /usr/ports/ftp/wget
bison: /usr/ports/devel/bison
flex: /usr/ports/textproc/flex
gd: /usr/ports/graphics/gd
cyrus-sas12: /usr/ports/security/cyrus-sasl2
libidn: /usr/ports/dns/libidn
The above takes a while, relax and have a cuppa!
Next download the directadmin setup.sh file
# fetch http://www.directadmin.com/setup.sh
Change permissions on the setup.sh file
# chmod 755 setup.sh
Now run the setup script!
# ./setup.sh
You will be prompted for a client ID number, license ID number, and hostname.
Important: The hostname should not be the same as the primary domain name. e.g. gary.com is not a good hostname, where server.gary.com is. Having the same host/main domain name will cause e-mail and FTP problems. Also, please make sure the hostname resolves once you setup DNS.
!!! Make sure you use custombuild 1.2, because version 2 is in beta and installs apache 2.4 which does not work well yet on freebsd 9.1 per december 20 2012, date of this How To
=========INSTALLATION TROUBLES============
If you've just finished a DirectAdmin install and are trying to start apache, but you get the error:
Syntax error on line 21 of /etc/httpd/conf/extra/httpd-vhosts.conf: Could not open configuration file /etc/httpd/conf/ips.conf: No such file or directory
this means that the ips.conf is missing. The cause is usually that the DirectAdmin install didn't actually finish.
In that case, to finish the install, type:
cd /usr/local/directadmin
./directadmin i
./directadmin p
which is the last step of the DA install.
In case something in custombuild didn't compile correctly. Type the following:
cd /usr/local/directadmin/custombuild
./build all d
and check for errors in the last few pages of output if it stops prematurely.
=============VPS Settings DA===================
Special notice for VPS/VDS installs:
After the install, add:
ethernet_dev=devicename to /usr/local/directadmin/conf/directadmin.conf
type: /sbin/ifconfig to see which device your IP is on.
Replace devicename with the FULL devicename reported by ifconfig. If your VDS/VPS system emulates eth0, then you may skip this step.
FreeBSD 9.1 may require an exim rebuild (for me it did):
Use custombuild for that:
cd /usr/local/directadmin/custombuild
./build update
./build set exim yes
./build exim
Restart exim, and you're done.
This is what worked for me on december 20th 2012

Good luck!