1.
Nano /etc/network/interfaces
2.
Service networking restart
3.
Ping eth0 & eth1
4.
Nano /etc/hosts
ip yg ke
dua isi dengan ip eth1
isi di
samping nya dengan nama domain
5.
Nano /etc/hostname
Isi dengan
nama domain
6.
Apt-get install isc-dhcp-server
7.
Nano /etc/default/isc-dhcp-server
INTERFACES=“eth1”
Ctrl x, y
enter
8.
Nano /etc/dhcp/dhcpd.conf
subnet ip
eth1 netmask ip netmask eth1
range
ip eth1
domain
ip eth1
ip
broadcast
9.
Service isc-dhcp-server restart 2x
10.
Apt-get install mysql-server php5
phpmyadmin bind9 apache2
Y enter
Masukkan
passwd
Konfirmasi
passwd
Pilih
apache2 dengan menekan space
Jika ad
pertanyaan , pilih No
11.
Cd /etc/bind
12.
Nano named.conf.local
Buat 2 zone
Zone
“tkj.org” {
Type master;
File
“/etc/bind/db.tkj”;
};
Zone “100.168.192.in-addr.arpa”
{
Type master;
File
“/etc/bind/db.192”;
};
Simpan
13.
Cp db.local db.tkj
14.
Cp db.127 db.192
15.
Nano db.tkj
Tkj.org.
root.tkj.org
@ in a
tkj.org
www in a ip
eth1
mail in a
ip eth1
ftp in a ip
eth1
portal in a
ip eth1
ujian in a
ip eth1
16.
Nano db.192
Tkj.org
root.tkj.org
@ in a
tkj.org.
Oktet
terakhir ip eth1 in PTR tkj.org.
Oktet
terakhir ip eth1 in PTR www.tkj.org.
Oktet
terakhir ip eth1 in PTR mail.tkj.org.
Oktet
terakhir ip eth1 in PTR ftp.tkj.org.
Oktet
terakhir ip eth1 in PTR portal.tkj.org.
Oktet
terakhir ip eth1 in PTR ujian.tkj.org.
17.
nano /etc/resolv.conf
search
tkj.org
nameserver
ip eth1
18.
nslookup tkj.org
19.
ping tkj.org
20.
cd /var/www
21.
mkdir portal
22.
mkdir ujian
23.
cp /var/www/index.html /var/www/portal
24.
cp /var/www/index.html /var/www/ujian
25.
nano /var/www/portal/index.html
26.
nano/var/www/portal/index.html
27.
nano
/etc/apache2/sites-availbale/default
di bawah
ServerAdmin tuliskan
ServerName
domain
Di paling
bawah tuliskan
<VirtualHost
*:80>
ServerName portal.tkjbisa.org
DocumentRoot /var/www/portal
</VirtualHost>
<VirtualHost
*:80>
ServerName ujian.tkjbisa.org
DocumentRoot /var/www/ujian
</VirtualHost>
28.
a2ensite ……(isi titik
dengan nama subdomainnya)2x
29.
service apache2 restart
0 komentar
Posting Komentar