English French German Spain Italian Dutch Russian Portuguese Japanese Korean Arabic Chinese Simplified

Konfigurasi Network, DNS, FTP,Web dan Mail dengan Ubuntu

.

A. Konfigurasi Network

1. vim /etc/network/interface
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

2. vim /etc/hosts
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

4. restart network
# /etc/init.d/networking restart

B. Konfigurasi DNS

1. Daftarkan cdrom terlebih dahulu dan masukkan CD ubuntu
#apt-cdrom add

2. Instal paket,
#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”;

};

4. Kopi file untuk zona forwards
#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

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

@ 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.

1 IN PTR ns.tkj.com.

9. restart bind
# /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

3. buat user
# adduser anggie

4. restart vsftpd
#/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

3. vim /etc/apache2/sites-enabled/web
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

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

6. Kopi paket squirrelmail.deb dari flash
#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

10. Vim /etc/apache2/sites-enabled/web
tambahkan

ServerName mail.tkj.com
DocumentRoot /usr/share/squirrelmail

11. Restart apache2

lintasberita

Share |
Silakan Pasang Link Anda Di Bawah Ini Dan Jangan Lupa Pasang Balik Link saya.
Thanks,
Recent Comment And Contact Us
foxyform.com
 
Selamat datang di Rendy'site | Terimah kasih atas kunjungannya. Tanbahkan komentar dan saran anda untuk perubahan yang lebih baik pada blog ini !