0% found this document useful (0 votes)
62 views4 pages

DNS Web Mail2

This document provides configuration instructions for setting up basic network services on a Linux server including IP addresses, DNS, Apache web server, MySQL database, ProFTPd FTP server, Postfix mail server, and SquirrelMail webmail. It assigns static IP addresses to network interfaces, installs and configures Bind DNS, Apache, PHP, MySQL, ProFTPd, Postfix, Courier, and SquirrelMail. Directories and files are configured, services are started and tested.

Uploaded by

arga
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
62 views4 pages

DNS Web Mail2

This document provides configuration instructions for setting up basic network services on a Linux server including IP addresses, DNS, Apache web server, MySQL database, ProFTPd FTP server, Postfix mail server, and SquirrelMail webmail. It assigns static IP addresses to network interfaces, installs and configures Bind DNS, Apache, PHP, MySQL, ProFTPd, Postfix, Courier, and SquirrelMail. Directories and files are configured, services are started and tested.

Uploaded by

arga
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

ns.smkpgri.sch.

id

= 192.168.10.1

www.smkpgri.sch.id

= 192.168.10.2

ftp.smkpgri.sch.id

= 192.168.10.3

mail.smkpgri.sch.id

= 192.168.10.4

Setting IP Address
1.

pico /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.10.1
netmask 255.255.255.0
auto eth0:0
iface eth0:0 inet static
address 192.168.10.2
netmask 255.255.255.0
auto eth0:1
iface eth0:1 inet static
address 192.168.10.3
netmask 255.255.255.0
auto eth0:2
iface eth0:2 inet static
address 192.168.10.4
netmask 255.255.255.0

2.
3.

(save : ctrl o, exit : ctrl x)


/etc/init.d/networking restart
Ifconfig

DNS Server
1.

apt-get install bind9

2.

3.
4.
5.

6.

pico /etc/bind/named.conf.local
zone smkpgri.sch.id {
type master;
file /var/cache/bind/db.smk;
};
zone 192.in-addr.arpa {
type master;
file /var/cache/bind/db.192;
};
cp /etc/bind/db.local /var/cache/bind/db.smk
cp /etc/bind/db.127 /var/cache/bind/db.192
pico /var/cache/bind/db.smk
$TTL 604800
@
IN
SOA smkpgri.sch.id.
root.smkpgri.sch.id.
(
2
; Serial
604800
; Refresh
6. 86400
; Retry
2419200
; Expire
604800 )
; Negative Cache TTL
;
@
IN
NS
smkpgri.sch.id.
@
IN
A
192.168.10.1
www
IN
A
192.168.10.2
ftp
IN
A
192.168.10.3
mail
IN
A
192.168.10.4
pico /var/cache/bind/db.192
$TTL 604800
@
IN
SOA smkpri.sch.id.
root.smkpgri.sch.id. (
1
; Serial
604800
; Refresh
86400
; Retry
2419200
; Expire
604800 )
; Negative Cache TTL
;
@
IN
NS
smkpgri.sch.id.
1.10.168
IN
PTR ns.smkpgri.sch.id.
2.10.168
IN
PTR www.smkpgri.sch.id.
3.10.168
IN
PTR ftp.smkpgri.sch.id.
4.10.168
IN
PTR mail.smkpgri.sch.id.

pico /etc/resolv.conf
search smkpgri.sch.id
domain smkpgri.sch.id
nameserver 192.168.10.1
8. /etc/init.d/bind9 restart
9. nslookup smkpgri.sch.id
10. nslookup 192.168.10.1
WEB SERVER / DATABASE SERVER
1. apt-get install apache2
2. apt-get install php5
3. apt-get install mysql-server phpmyadmin (tentukan root
password untuk database)
4. pico /var/www/index.html
7.

<html>
<body>
TEST
</body>
</html>
5. pico /var/www/phpinfo.php
<?php
phpinfo();
?>
buka browser dan buka web
www.smkpgri.sch.id dan www.smkpgri.sch.id/phpinfo.php
7. untuk mengetes DATABASE SERVER
www.smkpgri.sch.id/phpmyadmin
(user = root, pass = yang anda masukkan saat install mysqlserver)
6.

FTP SERVER
apt-get install proftpd
pilih standalone
adduser test (membuat user untuk FTP)
mkdir /home/share (membuat direktori yang akan kita share)
chmod 777 /home/share (merubah hak akses direktori)
pico /etc/proftpd/proftpd.conf
tambahkan pada baris paling bawah
#. . .
<Anonymous /home/share/>
User test
</Anonymous>
7. /etc/init.d/proftpd restart
8. buka browser
ftp.smkpgri.sch.id login dengan user dan password yang telah
dibuat
1.
2.
3.
4.
5.
6.

MAIL SERVER
apt-get install postfix courier-imap courier-pop squirrelmail
general type of mail configuration : Internet Site
system mail name
: smkpgri.sch.id
create web directories
: No
2. maildirmake /etc/skel/Maildir
1.

pico /etc/postfix/main.cf
home_mailbox = Maildir/
4. dpkg-reconfigure postfix
General Type of Mail Configuration
: Internet Site
System Mail Name
: smkpgri.sch.id
Root and postmaster mail recipient
:
Other destination to accept...
:
Force synchronous updates...
: No
Local Networks
: 0.0.0.0/0 (tambahkan pada baris
terakhir)
Use Procmail for local delivery
: No
Mailbox size limit (bytes)
:0
Local address extension character
:+
Internet protocols to use
: ipv4
5. /etc/init.d/postfix restart
6. pico /etc/apache2/apache2.conf
tambahkan pada baris paling bawah
Include /etc/squirrelmail/apache.conf
7. pico /etc/squirrelmail/apache.conf
cari virtual host lalu hapus tanda #
<VirtualHost *:80>
DocumentRoot /usr/share/squirrelmail
ServerName mail.smkpgri.sch.id
</VirtualHost>
8. /etc/init.d/apache2 restart
9. /etc/init.d/postfix restart
10. /etc/init.d/courier-imap restart
11. /etc/init.d/courier-pop restart
12. adduser satu
13. adduser dua
14. buka browser dan buka web
mail.smkpgri.sch.id
3.

You might also like