A. Konfigurasi Network
1. vim /etc/network/interface
auto eth0
iface inet static eth0
auto eth0
iface inet static eth0
address 10.0.0.2
network 10.0.0.0
netmask 10.255.255.255
broadcast 255.0.0.0
dns-nameservers 10.0.0.2
dns-search tkj.com
dns-search tkj.com
2. vim /etc/hosts
127.0.0.0 localhost.localdomain localhost
10.0.0.0.2 ubuntu.tkj.com ubuntu
127.0.0.0 localhost.localdomain localhost
10.0.0.0.2 ubuntu.tkj.com ubuntu
3. vim /etc/resolv.conf
domain tkj.com
search tkj.com
nameserver 10.0.0.2
domain tkj.com
search tkj.com
nameserver 10.0.0.2
4. restart network
# /etc/init.d/networking restart
# /etc/init.d/networking restart
B. Konfigurasi DNS
1. Daftarkan cdrom terlebih dahulu dan masukkan CD ubuntu
#apt-cdrom add
#apt-cdrom add
2. Instal paket,
#apt-get install bind9
#apt-get install bind9
3. Vim /etc/bind9/named.conf
“tkj.com” {
type master;
file “/var/cache/bind/db.for”;
};
“0.0.10.in-addr.arpa” {
type master;
file “/var/cache/bind/db.rev”;
type master;
file “/var/cache/bind/db.rev”;
};
4. Kopi file untuk zona forwards
#cp /etc/bind/db.empty /var/cache/bind/db.for
#cp /etc/bind/db.empty /var/cache/bind/db.for
5. Kopi file untuk zona reverse
#cp /var/cache/bind/db.for /var/cache/bind/db.rev
#cp /var/cache/bind/db.for /var/cache/bind/db.rev
6. cd /var/cache/bind/
7. vim db.for
$TTL 1W
@ IN SOA ns.tkj.com. root.tkj.com. (
42 : serial (d.adams)
2D : refresh
4H : retry
6W : expiry
1W ) : minimum
@ IN NS ns.tkj.com.
ns IN A 10.0.0.2
@ IN A 10.0.0.2
www IN CNAME ns.tkj.com.
ftp IN CNAME ns.tkj.com.
mail IN CNAME ns.tkj.com.
8. vim db.rev
$TTL 1W
$TTL 1W
@ IN SOA ns.tkj.com. root.tkj.com. (
42 : serial (d.adams)
2D : refresh
4H : retry
6W : expiry
1W) : minimum
@ IN PTR ns.tkj.com.
4H : retry
6W : expiry
1W) : minimum
@ IN PTR ns.tkj.com.
1 IN PTR ns.tkj.com.
9. restart bind
# /etc/init.d/bind9 restart
# /etc/init.d/bind9 restart
10. nslookup
C. konfigurasi FTP
1. apt-get install vsftpd
2. vim /etc/vsftpd.conf
hilangkan tanda pagar pada:
aninumouse enable=NO
local_enable
local_umask22
write_enable
hilangkan tanda pagar pada:
aninumouse enable=NO
local_enable
local_umask22
write_enable
3. buat user
# adduser anggie
# adduser anggie
4. restart vsftpd
#/etc/init.d/vsftpd restart
#/etc/init.d/vsftpd restart
D. konfigurasi Php
1. apt-get install apache2 php5
2. vim /etc/apache/httpd.conf
ServerName www.tkj.com
DocumentRoot /home/tkj/public_html/index.php
ServerName www.tkj.com
DocumentRoot /home/tkj/public_html/index.php
3. vim /etc/apache2/sites-enabled/web
NameVirtualHost 10.0.0.2:80
NameVirtualHost 10.0.0.2:80
ServerName www.tkj.com
DocumentRoot /home/tkj/public_html/index.php
4. vim /home/tkj/public_html/index.php
5. /etc/init.d/apache2 restart
6. Coba di browser
E. Konfigurasi Mail Server
1. Install postfix dovecot-common dovecot-pop3d dovecot-imapd
2. dpkg-reconfigure postfix
internet site
accep mail: mail.tkj.com, ubuntu.tkj.com, localhost .....
(selanjutnya biarkan default)
all
internet site
accep mail: mail.tkj.com, ubuntu.tkj.com, localhost .....
(selanjutnya biarkan default)
all
3. /etc/init.d/postfix restart
4. /etc/init.d/dovecot restart
5. Coba telnet
#telnet mail.tkj.com 25
#telnet mail.tkj.com 110
#telnet mail.tkj.com 25
#telnet mail.tkj.com 110
6. Kopi paket squirrelmail.deb dari flash
#cp squirrelmail.deb /home/tkj/
#cp squirrelmail.deb /home/tkj/
7. Cd /home/tkj/
8. Dpkg -i squirrelmail.deb
9. Vim /etc/apache2/httpd.conf
tambahkan
ServerName mail.tkj.com
DocumentRoot /usr/share/squirrelmail
tambahkan
ServerName mail.tkj.com
DocumentRoot /usr/share/squirrelmail
10. Vim /etc/apache2/sites-enabled/web
tambahkan
ServerName mail.tkj.com
DocumentRoot /usr/share/squirrelmail
tambahkan
ServerName mail.tkj.com
DocumentRoot /usr/share/squirrelmail
11. Restart apache2