Sabtu, 03 Oktober 2015

Tutorial Instalasi Dns Server Dan Web Server

LANGKAH-LANGKAH INSTALASI DEBIAN 7.4 MENGGUNAKAN VIRTUAL BOX
#INSTALASI VB
1.      Klik 2X oracle VB
2.      Untuk membuat mesin baru, klik new kemudian klik next
3.      Tulis nama os ( namasaya)

4.      Mengisikan kapasitas ram ( ex: 1GB/512mb) (selama masih posisi hijau)

5.      Klik next
6.    Membuat kapasitas hardisk Vb ( klik create new hardisk-klik next-dinamic isikan kapasitas hardisk - klik next-finish)


7.      Pilih Setting – system – atur boot order :
-          1. Hardisk
-          2. Cd/Dvd Room



8.      Storage – Empty – Debian 7.4


9.      Klik start padahalman installer boot menu – install
10.  Halaman configure the network name server address pilihdebian  (continue)
11.  Halaman host name = debian (continue)
12.  Full name = Atinwiwin (continue)
13.  Halaman password = 123 (continue)
14.  Re-enter password = 123 (continue)
15.  Halaman partition disk
16.  Partitioning method – pilih manual – enter
17.  Pilih SCS1 – enter
18.  Halaman create new empty partition – yes
19.  Pilihfreespace – enter
20.  Pilih how to you use this freespace
21.  Pilih create a new partitoion
22.  Isikanpartisi 10 GB – enter
23.  Halaman type for the new partition – pilih primary – enter
24.  Halaman location for the new partition pilih beginning – enter
25.  Halaman setting partisi X Use as – enter – pilihswep area
26.  Kemudianpilih “Done setting up the partition” – enter
27.  Pilihfreespace
28.  Pilih create a new partition – enter
29.  New partition, isikan sisanya lalu enter
30.  Type for new partition pilih beginning – enter
31.  Partition setting (root “/”)
32.  Kemudian pilih done setting up the partition – enter
33.  Finish partitioning and write changes to disk – enter
34.  Halaman write to changes to disk? Pilih Yes – enter
35.  Loading instalas isecara otomatis
36.  Masuk halaman Cli
-login “root”
- password “toor”



SETTING DNS SERVER

1.       Install linuxdebianlenny
2.       Setting ip address linuxà  192.168.50.1 / 24


3.       Buatip address client (pada windows/virtual box)

Ip address           192.168.50.2
Netmask              255.255.255.0
Ip DNS                  192.168.50.1



LangkahinstalasiSsh-server:
-          Apt-get install ssh-server
-          Install putty
-          Klikdua kali untukmembuka
-          Lalupada hostname (osip add) isikanIp server = 192.168.50.1

-          Pilih open Yes
-          Setting  warnaatau color
·         Default foreground – modify – Hitam – Ok


·         Default background – modify – putih – Ok


·         Default background – modify – hitam – Ok


-          Lalu
·          Login : root
·         Password : toor

-          Cekkonfigurasi  =  Ifconfig
-          Ping computer client lalub enter 192.168.50.2


4.       Isi Resolvànameserver 192.168.50.1      = vim  /etc/resolv.conf


Fungsiresolvà File iniakanmemberitahukanmesinlinux, name server mana di Internet yang akanditanyakanuntukmemetakannama host / domain kealamat IP

               
5.       Menginstalldns server
#apt-get   install   bind9

6.       Membuat domain sekolah.sch.id  dan profilku.com
a.       Vim  /etc/bind/named.conf , tambahkan
zone  “sekolah.sch.id” {
      type  master;
      file  “/etc/bind/db.sekolah”;
};

zone  “profilku.com” {
      type  master;
      file  “/etc/bind/db.profilku”;
};
b.      Konfigurasi file forward
#cp  /etc/bind/db.local   /etc/bind/db.sekolah
#cp  /etc/bind/db.local   /etc/bind/db.profilku

Edit kedua file tersebut

Vim  /etc/bind/db.sekolah, ubahsepertiberikut :
                               

                                Lakukan hal yang samauntukuntuk  profilku.com

c.       Restart service bind  à /etc/init.d/bind9  restart
d.      Lakukanpengecekandengan ping nama domain yang telahdibuatmelalui computer client.
Bukacmdlalu ping www.sekolah.sch.id

KONFIGURASI WEB SERVER / MEMBUAT VIRTUAL HOST
1.      Install apache  à  apt-get install apache2
2.      cp   /etc/apache2/sites-available/default  (spasi) /etc/apache2/sites-available/sekolah.sch.id
cp   /etc/apache2/sites-available/default   (spasi)/etc/apache2/sites-available/profilku.com

3.      Isikan servername
Vim  /etc/apache2/sites-available/sekolah.sch.id





4.      Vim  /etc/apache2/sites-available/profilku.com
Lakukanhal yang samaseperti point 3

5.      MengEnablekankonfigurasi webserver yang telahdibuat
a2ensite  sekolah.sch.id
a2ensite  profilku.com

6.      Buat folder di document root
-          mkdir  /var/www/sekolah
-          mkdir  /var/www/profilku

7.      Buatlah file index.html untukmasing-masingvirtualhost
-          vim  /var/www/sekolah/index.htmlàbuattampilan web sederhana


-          vim  /var/www/profilku/index.htmlàbuattampilan web sederhana

8.      Restart service web server =  /etc/init.d/apache2 restart

9.      Pengujian
-          Buka web browser panggil web server denganmengetikan :
a.      sekolah.sch.id 

                  b.      profilku.com


10.  Membuat ftp server
-          Installing FTP server à  apt-get install vsftpd
#vim/etc/vsftpd.conf
            anonymous_enable=YES
            write_enable=YES
            local_enable=YES
#/etc/init.d/vsftpd restart

ujicoba ;
menjalakan FTP di windows 7untuk test FTP server
bukaekplore, pada address tulisalamat FTP server ; ftp://192.168.50.1
klik menu file, login as danmasukkan user name danpasword yang telahadadari server linuxdancobalahuntuk create folder atau copy file dariwindows 7 kelinux




Tidak ada komentar:

Posting Komentar