Senin, 05 Oktober 2015

Instalasi DNS dan Web Server



1)    LANGKAH – LANGKAH INSTALLASI DEBIAN 7.4

1.     Buka virtual box  ð klik new
2.     Muncul halaman welcome ð klik next
3.     Muncul VM name an os type : isikan nama dan type os
·    Name = debian
·    Type = Linux
·    Version = Debian
ð Lalu klik next
4.    Pada halaman memory, isikan kapasitas memory
ð 512 Mb (selagi masih hijau) ð klik next
5.    Muncul halaman virtual harddisk , pilih create new harddisk ð klik next
6.    Muncul halaman welcome ð klik next
7.    Muncul halaman harddisk storage type ð pilih Dynamically expanding storageð klik next
8.    Muncul halaman virtual disk location and size
ðisi kapasitas harddiskð 18 GBð klik next
9.     Pada halaman summary ð klik finish
#Setting mesin baru
·         Pilih system atur boot order
ð1. Hardisk
    2. CD/DVD room
    3. Floppy
·         Pilih storage
ðklik empty ðcari iso debian 7.4ðklik ok
·         Klik start
·         Pilih installðproses
·         Muncul halaman hostname ketikkan
ðDebianðcontinue
·         Muncul hal. Full name isikan
ðDebianðcontinue
·         Muncul hal. Password,isikan
ð123ðcontinue
·         Muncul hal. Re-enter password:
ð123ðcontinue
·         Proses
·         Muncul hal. Partisi. Pilih manual
·         Pilih SCSI ðEnter
·         Muncul hal. Create new empty partition? YES
·         Pilih free space, create new partition isikan kapasitas partisið10000ðcontinue
·         Pilih primaryðbeginningðenter
·         Partition setting
ðpilih use as
ðpilih swap area
ðpilih done setting up the partition
·         Pilih free spaceðcreate new partition , isikan kapasitas partisi 9.3 GBðcontinueðlogicalðenter
·         Partition setting
ðpilih use as
ðpilih done setting
·         Pilih finishðenter
·         Write the changes to disk? YES
·         Proses
·         Selesai

2) Langkah Konfigurasi Debian
1)      Login sebagai root, password: toor 
 


     2.)      Whoðuntuk mengecek nama login
     3.)      ifconfigðuntuk mengecek IP
     4.)      nano /etc/network/interfacesðkonfigurasi IP



5)      Pilih ctrl+x, y ðuntuk keluar dan menyimpan
6)      /etc/init.d/networking restartðuntuk merestart konfigurasi ip
7)      Membuka internet protocol (TCP/IP)

8)      Lalu ping = ping 192.168.70.2ðdi server
9)      Ping 192.168.70.1 ðdi client(cmd)

 
         10) Install ssh-serverðapt-get install ssh-server
             11) Kemudian buka aplikasi putty


        ðisikan hostname = 192.168.70.1

     3)Setting DNS Server 
                   1.)Install linux debian lenny 
              2.)Setting IP Address linuxð 192.168.70.1
            Iface eth0 inet static
                Address 192.168.70.1
                Netmask 255.255.255.0 
             3.)Buat ip address client (pada windows)
              Ip address 192.168.70.2
              Netmask 255.255.255.0
              IP DNS 192.168.70.1 
             4.)Isi resolvðname server 192.168.70.1
          ðnano /etc/resolv.conf


         Fungsi resolv ð file ini akan memberitahukan mesin linux, nameserver mana diinternet yang      akan ditanyakan untuk memetakan nama host/domain ke alamat IP
          5.)Menginstall dns serverðapt-get install bind9
          6.)Membuat domain sekolah.sch.id dan profilku.com
              

a.       Nano /etc/bind/named.conf,tambahkan
Zone “sekolah.sch.id”{
Type master;
File “/etc/bind/db.sekolah”
};


Zone “profilku.com” {
Type master;
File “/etc/bind/bind/db.frofilku”
};
b.      Konfigurasi file forward
·         Cp /etc/bind/dn.local   /etc/bind/db.sekolah
·         Cp /etc/bind/dn.local   /etc/bind/db.profilku
Edit kedua file tersebut
ðnano /etc/bind/db.sekolah, ubah menjadi :


Lakukan hal yang sama untuk profilku.com
a.       Restart service bind ð/etc/init.d/bind9 restart
b.      Lakukan pengecekan dengan ping nama domain yang telah dibuat
c.       Ping sekolah.sch.id
d.      Ping profilku.com

4)Konfigurasi Web Server/Membuat Virtual Host
1          1.)Install apache2ðapt-get install apache2
            2.)Cp /etc/apache2/sites-avaible/default (spasi) /etc/apache2/sites-avaible/sekolah.sch.id
        Cp /etc/apache2/sites-avaible/default (spasi) /etc/apache2/sites-avaible/profilku.com
            3.)Isikan server name
        Nano /etc/apache2/sites-avaible/sekolah.sch.id
      



4      4. )      Nano /etc/apache2/sites-avaible/profilku.com
           Lakukan hal yang sama seperti point 3
5       5.)      Mengenable kan konfigurasi web server yang telah dibuat
-a2ensite sekolah.sch.id
-a2ensite profilku.com
        6.)      Buat folder di dokumen root
-mkdir /var/www/sekolah
      -mkdir /var/www/profilku 
        7.)      Buatlah file index.html untuk masing-masing virtual host
-nano /var/www/sekolah/index.htmlðbuat tampilan web sederhana
-nano /var/www/profilku/index.htmlðbuat tampilan web sederhana


      8.)      Restart service web server = /etc/init.d/apache2 restart
      9.)      Pengujian
-Buka web browser panggil web browser dengan menggetikkan :
a. sekolah.sch.id
b. profilku.com       
    

       10.)      Membuat FTP serverðapt-get install vsftpd
-nano /etc/vsftpd.conf
                Anonymous enable = YES
                Write enable = YES
                Local enable = YES
-/etc/init.d/vsftpd restart
Uji coba :
Menjalankan FTP di windows 7 untuk test FTP server buka explore pada address tulis alamat FTP server; FTP://192.168.70.1 klik menu file, login as dan masukkan username dan password yang telah ada dari server linux dan cobalah untuk create folder atau copy file dari windows 7 ke linux.
 





Tidak ada komentar:

Posting Komentar