# nano /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.50.2
netmask 255.255.255.192

# nano /etc/resolv.conf
search smkn12.sch.id
nameserver 192.168.50.2

# apt-get install bind9

# nano /etc/bind/named.conf
zone “smkn12.sch.id” {
type master;
file “/etc/bind/A”;
};

zone “50.168.192.in-addr.arpa” {
type master;
file “/etc/bind/B”;
};

# cp /etc/bind/db.local /etc/bind/A
# cp /etc/bind/db.127 /etc/bind/B

# nano /etc/bind/A
@    IN    SOA    smkn12.sch.id. root.smkn12.sch.id. (

;
@    IN    NS    smkn12.sch.id.
www    IN    A    192.168.50.2
mail    IN    A    192.168.50.2

# nano /etc/bind/B
@    IN    NS    smkn12.sch.id.

;
@    IN    NS    smkn12.sch.id.
2    IN    PTR    www.smkn12.sch.id.
2   IN    PTR    mail.smkn12.sch.id.

# /etc/init.d/bind9 restart
# /etc/init.d/networking restart

# nslookup 192.168.50.2
(BERHASIL)

# apt-get install apache2 php5

# cp /etc/apache2/sites-available/default /etc/apache2/sites-available/www

# nano /etc/apache2/sites-available/www
ServerAdmin agus@smkn12.sch.id
ServerName http://www.smkn12.sch.id
ServerAlias smkn12.sch.id
DocumentRoot /home/agus/public_html

<Directory /home/agus/public_html/>

# apt-get install postfix courier-imap courier-pop squirrelmail
administration pilih (NO)
The Only delivered (OK)
Internet Site (OK)
Sysytem mail name (domain.com) <OK>

# maildirmake /etc/skel/Maildir
# dpkg-reconfigure postfix
(OK) terus smpai LOCAL networks
Local Network (0.0.0.0/0) <OK>
Delivery (NO)
Mailbox pilih (OK) sampai akhir

# nano /etc/postfix/main.cf
home_mailbox = Maildir/ (bawah sendiri)

# mkdir /home/agus/public_html
# nano /home/agus/public_html/index.html
<html>
<body>
<h1>
<marquee> WWW>SMKN12.SCH.ID </marquee>
</h1>
</body>
</html>

# nano /etc/apache2/apache2.conf
Include /etc/squirrelmail/apache.conf (tambahkan bawah sendiri)

# nano /etc/squirrelmail/apache.conf
<VirtualHost *:80>
Document /usr/share/squirrelmail
ServerName mail.smkn12.sch.id
</VirtualHost>

(hapus semua pagar di depan nya) “#”

# /etc/init.d/apache2 restart

# /etc/init.d/postfix restart

# /etc/init.d/courier-imap restart

# /etc/init.d/courier-pop restart

# masuk mozilla firefox
http://www.smkn12.sch.id


mail.smkn12.sch.id