Setting IP Address, DNS Server, WEB Server, FTP Server MAIL Serever, dan WEB-MAIL Server
TOPOLOGY YANG AKAN KITA BUAT
LAPTOP<--->(eth0)ROUTER(eth1)<---->(eth0)SERVER
# KETERANGAN TANDA #
root# = Perintah yang akan diketikan
SERVER
# SETING IP ADDRESS #
root# ifconfig -a
apabila nama interfacenya eth0, maka pada setingan gunakan eth0. bila
eth1 maka gunakan eth1
root# nano /etc/network/interfaces
hapus tanda ini jika ada :
allow-hotplug eth0
iface eth0 inet dhcp
ganti dengan mengetik dibawah ini:
auto eth0
iface eth0 inet static
address 192.168.2.2
netmask 255.255.255.0
network 192.168.2.0
broadcast 192.168.2.255
lalu simpan dengan menekan (ctrl+x, y lalu enter)
root# /etc/init.d/networking restart
root# ifconfig --> jika muncul eth0 berarti setingan ip address berhasil
# DNS SERVER #
masukan cd debian (agar bisa menambah repositori yang akan kita install)
root# apt-cdrom add
root# apt-get install bind9 -y
root# cd /etc/bind
root:etc/bind# cp db.local zan.db
root:etc/bind# cp db.127 192.db
root:etc/bind# cp named.conf named.conf.backup
root:etc/bind# nano zan.db
root:etc/bind# nano 192.db
root:etc/bind# nano named.conf
root:etc/bind# cd
root# /etc/init.d/bind9 restart
root# nano /etc/resolv.conf --> isikan dengan (nameserver 192.168.2.2)
root# nslookup www.zanharis.info
# WEB SERVER #
root# apt-get install apache2 php5 phpmyadmin mysql-server -y
root# nano /var/www/index.html
# MAIL SERVER DAN WEB-MAIL SERVER #
root# apt-get install postfix courier-imap courier-pop squirrelmail -y
create directory for web based .. [NO]
[OK]
Internet Site
System mail name : zaharis.info
root# cd /etc/skel
root:/etc/skel# ls
root:/etc/skel# maildirmake Maildir
root:/etc/skel# nano /etc/postfix/main.cf
berikan centang pada mailbox_command = procmail -a "$EXTENSION" sprt
#mailbox_command = procmail -a "$EXTENSION"
tambahkan di bawah myorigin = /etc/mailname: dengan
home_mailbox = Maildir/
kemudian edit mynetworks = 127.0.0.0/8 192.168.9.0
lalu save (ctrl+x. y)
root:/etc/skel# /etc/init.d/postfix restart
root:/etc/skel# taik -f /var/log/syslog ------>untuk melihat kesalahan
root# squirrelmail-configure
command >> 2
command >> 1
command >> A
command >> 4
command >> 8 other:courier (pilih courier)
command >> B
command >> 4
command >> s (save)
command >> q (quit)
root# cd /var/www
root:/var/www# nano /etc/squirrelmail/apache.conf
cari : Alias /squirrelmail /user/share/squirelmail
ganti dengan : Alias /webmail /user/share/squirelmail
kemudian save (ctrl+x, y)
root:/var/www# nano /etc/apache2/apache2.conf
cari kata ini:
# Include the virtual host configuration:
Include /etc/apache2/site-enable
terus tambah kan kata dibawahnya yaitu dengan:
Include /etc/squirrelmail/apache.conf
lalu save (ctrl+x, y)
root:/var/www# /etc/init.d/apache2 restart
root:/var/www# adduser admin
klo semuanya udah di install kita restart
root#/etc/init.d/courier-imap restart
root#/etc/init.d/courier-pop restart
# FTP SERVER #
root# apt-get install proftpd
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment
BERIKAN KOMENTAR ANDA AGAR KAMI BISA MEMPERBAIK KESALAHAN KAMI