Download Games dan software Gratis Zulmi's Blog: Server Debian 4 Download Games dan software Gratis
Tampilkan postingan dengan label Server Debian 4. Tampilkan semua postingan
Tampilkan postingan dengan label Server Debian 4. Tampilkan semua postingan

Minggu, 12 Desember 2010

Buat FTP Server pada Debian 4

Ketentuan

Server:

IP ADDRESS 192.168.30.1

NETMSK 255.255.255.0 (/24)

GATEWAY 192.168.30.254

Client:

IP ADDRESS 192.168.30.10

NETMASK 255.255.255.0 (/24)

GATEWAY 192.168.30.254

DNS 192.168.30.1

  1. Siapkan PC yang sudah terinstall system operasi Debian 4
  2. Pastikan DNS Server sudah siap digunakan
  3. Setting file resolv.conf

# nano /etc/resolv.conf

search zulmi.net

nameserver 192.168.30.1

  1. install paket proftpd

# apt-get install proftpd

  1. edit konfigurasi proftpd

# nano /etc/proftpd.conf

Tambahkan kalimat berikut agar user tidak bisa megakses root:

Umask 022

AllowOverwrite on

DefaultRoot /home

  1. restart proftpd

# /etc/init.d/proftpd restart

  1. tes pada client

Setting Web Server Pada Debian 4

Ketentuan

Server:

IP ADDRESS 192.168.30.1

NETMSK 255.255.255.0 (/24)

GATEWAY 192.168.30.254

Client:

IP ADDRESS 192.168.30.10

NETMASK 255.255.255.0 (/24)

GATEWAY 192.168.30.254

DNS 192.168.30.1

  1. Siapkan PC yang sudah terinstall system operasi Debian 4
  2. Pastikan DNS Server sudah siap digunakan
  3. Setting file resolv.conf

# vi /etc/resolv.conf

search zulmi.net

nameserver 192.168.30.1

  1. install paket apache2,php5,mysql-server

# apt-get install apache2

  1. konfigurasi virtual host

# cd /etc/apache2/sites-enabled

#cp 000-default zulmi

# vi zulmi

192.168.30.1:80>

DocumentRoot /home/zulmi/public_html

ServerName www.zulmi.net

  1. buat file index.php pada directory /home/zulmi/public_html

# vi /home/zulmi/public_html

<?

phpinfo();

?>

  1. hidupkan service apache2

# service apache2 start

  1. cek pada client


  1. jika muncul tampilan php info seperti gambar diatas maka web server sudah bisa digunakan

Buat DNS Server Pada Debian 4

Ketentuan

Server:

IP ADDRESS 192.168.30.1

NETMSK 255.255.255.0 (/24)

GATEWAY 192.168.30.254

Client:

IP ADDRESS 192.168.30.10

NETMASK 255.255.255.0 (/24)

GATEWAY 192.168.30.254

DNS 192.168.30.1

  1. Siapkan PC dg system operasi Debian 4
  2. Install paket bind9

# apt-get install bind9

  1. Setting file resolv.conf

# nano /etc/resolv.conf

search zulmi.net

nameserver 192.168.30.1

  1. Buat zona forward dan reverse pada file named.conf

# nano /etc/bind/named.conf

zone “zulmi.net” IN {

type master;

file “/etc/bind/forward”;

};

Zone30.168.192.in-addr.arpa” IN {

type master;

file “/etc/bind/reverse”;

};

  1. Copy contoh file zona forward dan file zona reverse pada directory /etc/bind

# cp db.local forward

# cp db.127 reverse

  1. Edit file zona forward

# nano /etc/bind/forward

@ 1D IN SOA zulmi.net. root.zulmi.net (

1D IN NS ns.zulmi.net.

1D IN A 192.168.30.1

ns 1D IN A 192.168.30.1

www 1D IN A 192.168.30.1

ftp 1D IN A 192.168.30.1

mail 1D IN A 192.168.30.1

1D IN MX 10 mail.zulmi.net.

  1. Edit file zona reverse

# nano /etc/bind/reverse

@ IN SOA zulmi.net. root.zulmi.net. (

IN NS ns.zulmi.net.

1 IN PTR ns.zulmi.net.

  1. Hidupkan service bind9

# /etc/init.d/bind9 start

  1. Cek DNS server

# nslookup –sil

>zulmi.net

Server: 192.168.30.1

Address: 192.168.30.1#53

Name: zulmi.net

Address: 192.168.30.1

>192.168.30.1

Server: 192.168.30.1

Address: 192.168.30.1#53

1.30.168.192.in-addr.arpa name = ns.zulmi.net.

Kalau sudah muncul tulisan seperti diatas berarti DNS server sudah bisa