KONFIGURASI TCP/IP
vim /etc/netwrork/interfaces
# IP UTAMA
auto eth0
iface eth0 inet static
address 192.168.102.29
netmask 255.255.255.0
gateway 192.168.102.1
#IP UNTUK CLIENT
auto eth0:1
iface eth0:1 inet static
address 172.17.8.1
netmask 255.255.255.0
/etc/init.d/networking/restart
KONFIGURASI DNS SERVER
apt-get install bind9
vim /etc/hosts vim /etc/resolv.conf
127.0.0.1 localhost search riduwan.co.cc
192.168.102.29 riduwan.co.cc nameserver 192.168.10.29
vim /etc/bind/named.conf
zone “riduwan.co.cc” {
type master;
file “/etc/bind/forward”;
};
zone “102.168.192.in-addr.arpa” {
type master;
file “/etc/bind/reverse”;
};
cp /etc/bind/db.local /etc/bind/forward
cp /etc/bind/db.127 /etc/bind/reverse
vim /etc/bind/forward
;
; BIND forward riduwan.co.cc
;
$TTL 604800
@ IN SOA ns.riduwan.co.cc. root.riduwan.co.cc. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS riduwan.co.cc.
@ IN A 192.168.102.29
www IN A 192.168.102.29
ftp IN A 192.168.102.29
mail IN A 192.168.102.29
stream IN A 192.168.102.29
vim | /etc/bind/reverse | ||||
; | |||||
; BIND reverse riduwan.co.cc | |||||
; | |||||
$TTL | 604800 | ||||
@ | IN | SOA | ns. riduwan.co.cc. root. riduwan.co.cc. ( | ||
1 | ; Serial | ||||
604800 | ; Refresh | ||||
86400 | ; Retry | ||||
2419200 | ; Expire | ||||
604800 ) | ; Negative Cache TTL | ||||
; | |||||
@ | IN | NS | riduwan.co.cc. | ||
29 | IN | PTR | riduwan.co.cc. | ||
29 | IN | PTR | www. riduwan .co.cc. | ||
29 | IN | PTR | ftp. riduwan.co.cc. | ||
29 | IN | PTR | mail .riduwan.co.cc. | ||
29 | IN | PTR | stream.riduwan.co.cc. | ||
/etc/init.d/bind9 restart | |||||
KONFIGURASI WEB SERVER | |||||
apt-get install apache2 mysql-server php5 phpmyadmin php5-cli
cp /etc/apache2/sites-available/default /etc/apache2/sites-available/www
vim /etc/apache2/sites-available/www
<VirtualHost *:80>
ServerAdmin webmaster@riduwan .co.cc ServerName www. riduwan .co.cc DocumentRoot /home/tkj/public/www/ <Directory />
Options FollowSymLinks AllowOverride None
</Directory>
<Directory /home/tkj/public/www/>
Options Indexes FollowSymLinks MultiViews AllowOverride None
Order allow,deny allow from all
a2ensite www a2dissite default
mkdir /home/tkj/public/www/
Masukkan joomla pada direktori /home/tkj/public_html/www chmod 777 /home/tkj/public/www/
Buka browser www.riduwan.co.cc/phpmyadmin Buat database baru dengan nama www /etc/init.d/mysql restart
/etc/init.d/apache2 restart
Buka browser www.riduwan.co.cc
Lengkapi pendaftaran joomla dan jalankan web kita.
KONFIGURASI FTP SERVER
apt-get install proftpd
Kita buat user untuk ftp server kita
chmod 777 /etc/home/tkj
ftp ftp.riduwan.co.cc
Connected to ftp.riduwan.co.cc.
220 ProFTPD 1.3.1 Server (Debian) [::ffff:192.168.102.29] User (ftp.riduwan.co.cc:(none)): tkj
331 Password required for tkj Password:
230 User tkj logged in ftp>
Buka browser ftp.riduwan.co.cc
Silahkan login dan masuk ftp server
KONFIGURASI MAIL SERVER
apt-get install postfix courier-imap squirrelmail
vim /etc/postfix/main.cf
myhostname = riduwan.co.cc alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases myorigin = admin.riduwan.co.cc
mydestination = riduwan.co.cc, admin.riduwan.co.cc, , localhost.riduwan.co.cc
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:192.168.102.0/24 [::1]/128 mailbox_command = procmail -a "$EXTENSION" mailbox_size_limit = 0
recipient_delimiter = + inet_interfaces = all home_mailbox = Maildir/
/etc/squirrelmail/conf.pl
Tekan 2 => enter isikan domain.
Tekan r => enter untuk kembali ke menu utama.
Tekan d => enter isikan courier Tekan enter 2 kali.
Tekan s => enter untuk menyimpan konfigurasi.
Tekan q => enter untuk keluar.
cd /etc/skel
maildirmake Maildir
Membuat user untuk mail
adduser admin
adduser guest
Tidak ada komentar:
Posting Komentar