- IP Address 
2.     
forum.cukil.com
= 192.168.1.2 
- Sistem
operasi Linux Ubuntu 10.04 LTS
- Paket yang
diperlukan 
1.     
Apache2  → apt-get install apache2
2.     
Bind 9 → apt-get
install bind9
3.     
PHP5 → apt-get
install php5
4.     
Mysql-Server
→ apt-get install mysql-server perhatin : password jangan sampai lupa
5.     
Library
tambahan :
                # apt-get install libapache2-mod-auth-mysql
                #apt-get install php5-mysql
                #apt-get install phpmyadmin (optional boleh diinstall boleh
tidak)
6.     
Program
tambahan untuk CMS dan Forum disiapkan masing-masing
Adapun
langkah-langkah pembuatan DNS dan Konfigurasi subdomain di ubuntu lucid 10.04
adalah sebagai berikut :
1.     
Atur
jaringan dengan konfigurasi seperti dibawah ini :
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.1
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.255
dns-nameserver 192.168.1.1
auto eth0:1
iface eth0:1 inet static
address 192.168.1.2
netmask 255.255.255.0
2.     
Restart
jaringan, tes koneksi #ping 192.168.1.1 
dan #ping 192.168.1.2
3.     
Rubah
resolv.conf masukan konfigurasi seperti dibawah ini:
nameserver 192.168.1.1
search cukil.com
4.     
Masuk ke
folder bind, cara nya ketikan #cd /etc/bind
5.     
Ketikan #ls
 untuk melihat daftar file
6.     
Lakukan
perubahan pada file named.conf.default-zones 
cara nya ketikan #nano named.conf.default-zones  tambahkan pada bagian bawah konfigurasi
seperti di bawah ini :
zone "cukil.com" {
        type master;
        file
"/etc/bind/db.cukil.com";
};
zone
"1.168.192.in-addr.arpa" {
        type master;
        file
"/etc/bind/db.cukil.rev";
};
7.     
Buat file db.cukil.com
supaya lebih cepat dapat dilakukan dengan menyalin dari db.local caranya adalah
dengan mengetikan #cp db.local db.cukil.com
8.     
Atur
konfigurasi db.cukil.com seperti pada konfigurasi dibawah ini:
;
; BIND data file for local
loopback interface
;
$TTL    604800
@       IN     
SOA     ns.cukil.com.
root.cukil.com. (
                              2         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
@                IN      NS     
ns.cukil.com.
@                IN      A      
192.168.1.1
www   IN     
A       192.168.1.1
forum        IN      A      
192.168.1.2
ns                IN      A      
192.168.1.1
9.     
Buat file db.cukil.rev
supaya lebih cepat dapat dilakukan dengan menyalin dari db.local caranya adalah
dengan mengetikan #cp db.local db.cukil.rev
10.  
Atur
konfigurasi db.cukil.rev seperti pada konfigurasi dibawah ini:
;
; BIND data file for local
loopback interface
;
$TTL    604800
@       IN     
SOA     ns.cukil.com.
root.cukil.com. (
                              2                      ; Serial
                         604800               ; Refresh
                          86400               ;
Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
@                                 IN      NS      cukil.com.
@                                 IN      A       192.168.1.1
ns                                                IN      A      
192.168.1.1
forum                        IN      A      
192.168.1.2
11.  
Restart
bind, cara nya ketikan # /etc/init.d/bind9 restart 
12.  
Tes apakah
file konfigurasi nya sudah benar, cara nya ketikan perintah seperti dibawah
ini:
root@administrasi-desktop:/etc/bind#
named-checkzone cukil.com /etc/bind/db.cukil.com
zone cukil.com/IN: loaded serial
2
OK
root@administrasi-desktop:/etc/bind#
named-checkzone cukil.com /etc/bind/db.cukil.rev
zone cukil.com/IN: loaded serial
2
OK
13.  
Lakukan
pengetesan apakan DNS berhasil dibuat atau tidak, cara nya ketikan #nslookup
cukil.com seperti pada gambar dibawah ini:
root@administrasi-desktop:/etc/bind#
nslookup cukil.com
Server:                      192.168.1.1
Address:  192.168.1.1#53
Name:       cukil.com
Address: 192.168.1.1
root@administrasi-desktop:/etc/bind#
host www.cukil.com
www.cukil.com has address
192.168.1.1
root@administrasi-desktop:/etc/bind#
14.  
Cek juga
apakah sub domain nya sudah ada ketikan #nslookup forum.cukil.com
root@administrasi-desktop:/etc/bind#
nslookup forum.cukil.com
Server:                      192.168.1.1
Address:   192.168.1.1#53
Name:       forum.cukil.com
Address: 192.168.1.2
Langkah
selanjutnya adalah menyiapkan folder untuk halaman forum, adapun
langkah-langkah nya adalah sebagai berikut :
1.     
Masuk ke
direktori var/www , cara nya ketikan #cd /var/www
2.     
Buat folder
untuk forum ketikan #mkdir forum
3.     
buat file
forum.cukil.com, ketikan #nano /etc/apache2/sites-available/forum.cukil.com
masukan konfigurasi seperti dibawah ini
                         <VirtualHost
192.168.1.2:80>
    ServerAdmin
forum@localhost
    DocumentRoot
/var/www/forum
    <Directory
/>
          
Options FollowSymLinks
          
AllowOverride None
   
</Directory>
    <Directory
/var/www/forum>
          
Options Indexes FollowSymLinks MultiViews
          
AllowOverride None
          
Order allow,deny
          
allow from all
   
</Directory>
    ScriptAlias
/cgi-bin/ /usr/lib/cgi-bin/
    <Directory
"/usr/lib/cgi-bin">
          
AllowOverride None
          
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
          
Order allow,deny
          
Allow from all
   
</Directory>
    ErrorLog
/var/www/forum/error.log
    # Possible
values include: debug, info, notice, warn, error, crit,
    # alert,
emerg.
    LogLevel warn
    CustomLog
/var/www/forum/access.log combined
    Alias /doc/
"/usr/share/doc/forum"
    <Directory
"/usr/share/doc/forum">
       
Options Indexes MultiViews FollowSymLinks
       
AllowOverride None
       
Order deny,allow
       
Deny from all
       
Allow from 127.0.0.0/255.0.0.0 ::1/128
   
</Directory>
</VirtualHost> 
4.     
Buat link
dari sites-available ke sites-anable caranya masuk ke folder sites-available
ketikan #cd /etc/apache2/sites-available setelah itu ketikan #a2ensite riki.cukil.com
5.     
Restart
apache #/etc/init.d/apache2 restart
6.     
Install CMS
di folder /var/www  dan install program
untuk forum di /var/www/forum 
Cek
menggunakan mozilla ketikan www.cukil.com dan http://forum.cukil.com
Credit to Riki Nuryadin, S.Pd 

Post a Comment