Well this "guide" if you like, doesn't really have a purpose, it both shows you how to setup a basic irc box (just installing oidentd), its mainly targeted towards installing cPanel on freeBSD.
I used freeBSD 5.4-RELEASE so you might not encounter problems I did.
firstly login to your server and we will just install cpanel straight away.
-------------------------------------------------------------------------------- mkdir /home/cpins cd /home/cpins wget http://layer1.cpanel.net/latest sh latest --------------------------------------------------------------------------------
This will take awhile so go grab a coffee. This will install everything for cPanel.
Once this is complete, go to WHM
http://yourip/whm
and login with username root and your root password. Now you will be prompted with
WHM setup screen. This is really
simple, just follow
onscreen instructions to setup whm. This will setup your server hostname,resolvers,nameservers and
so on.
Once this is done, you have done it. You have installed cPanel, but don't get your hopes up just yet. No doubt there will
be bugs, you are best to search google but I will go over what ones I encounter. If I do that is.
So straight off I am going to go test
account creation, go to Create A New Account in WHM, and input any domain you
want, for my example I just put google.com. After I hit created it created
account but returned a bind error. So we
have to fix this first.
I ran
--------------------------------------------------------------------------------/scripts/fixnamed /scripts/fixndc --------------------------------------------------------------------------------
Which returned
--------------------------------------------------------------------------------Found key in named.conf .. Found controls in named.conf .. Found key in named.conf .. Adding key... Adding controls... Restarting bind.....Waiting for named to restart..............finished.
named has failed, please contact
sysadmin (result was "named is not running"). Jun 7 14:03:26 serv named[52645]: starting BIND 9.3.1 -u bind -c /etc/namedb/named.conf Jun 7 14:03:26 serv named[52645]: could not configure root hints from '/var/named/named.root': file not
found Jun 7 14:03:26 serv named[52645]: loading configuration: file not found Jun 7 14:03:26 serv named[52645]: exiting (due to fatal error) Done All fixed --------------------------------------------------------------------------------
So I just created
/var/named/named.root file manually by using
touch command then I re-ran /scripts/fixndc this done
the job.
--------------------------------------------------------------------------------serv# touch /var/named/named.root serv# /scripts/fixndc Found key in named.conf .. Found controls in named.conf .. Found key in named.conf .. Adding key... Adding controls... Restarting bind.....Waiting for named to restart..............finished.
bind 53378 0.0 0.7 5240 3744 ?? Ss 2:09PM 0:00.04 /usr/sbin/named -u bind -c /etc/namedb/named.conf
named started ok Jun 7 14:09:18 serv named[53378]: starting BIND 9.3.1 -u bind -c /etc/namedb/named.conf Jun 7 14:09:18 serv named[53378]: command channel listening on 127.0.0.1#953 Jun 7 14:09:18 serv named[53378]: zone 0.0.127.IN-ADDR.ARPA/IN: loading master file
/var/named/localhost.rev: file not found Jun 7 14:09:18 serv named[53378]: zone
1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA/IN: loading master file
/var/named/localhost-v6.rev: file not found Jun 7 14:09:18 serv named[53378]: zone
1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.INT/IN: loading master file
/var/named/localhost-v6.rev: file not found Jun 7 14:09:18 serv named[53378]: running Done All fixed --------------------------------------------------------------------------------
---
Now go back and terminate
test account and recreate it.
This time it created successfully.
--------------------------------------------------------------------------------Keeping Shell Access (y) Copying skel files from /root/cpanel3-skel/ to /usr/home/google/ Using Freebsd Copy /root/cpanel3-skel/public_html -> /usr/home/google/public_html /root/cpanel3-skel/public_ftp -> /usr/home/google/public_ftp Using redhat 6.x/freebsd support Name Virtual Host already exists Added Entries to httpd.conf (noip) Bind reconfiguring on serv using rndc Added Named File Using Frontpage 5.x!
Starting install, port: 80.
Creating web http://www.google.com. Chowning Content in service /. Install completed.
Starting chown, port: 80, web: "/".
DocumentRoot: "/usr/home/google/public_html" Setting Password Frontpage passthough auth enabled! Restarting apache Ftp Password Files synced Vhost Passwords synced wwwacct creation finished Account Creation Complete!!! --------------------------------------------------------------------------------