Letter R

Jumat, 15 Juli 2011

Setting Mail - DNS Server Debian Lenny 5.0

apt-get install apache2 lynx ssh php5 courier-imap courier-pop squirrelmail postfix bind9

# nano /etc/network/interface
    allow-hotplug eth0
    auto eth0
    allow eth0 inet static
        address 202.100.4.65
        netmask 255.255.255.224
        network 202.100.4.30
        broadcast 202.100.4.63
        gateway 202.100.4.65
        dns server 202.100.4.65
        search smkyp.sch.id

    allow-hotplug eth0:1
    auto eth0:1
    allow eth0:1 inet static
        address 202.100.4.66
        netmask 255.255.255.224

    allow-hotplug eth0:2
    auto eth0:2
    allow eth0:2inet static
        address 202.100.4.65
        netmask 255.255.255.224
# /etc/init.d/networking restart

# cd /etc/home
    home# mkdir php ()
    home# mkdir smk

# cp /var/www/index.php /home/php/
    <body>
    <html>
    <h1>HELLOW</h1>
    <a href="index.php">Home</a>-
    <?php
    echo "WELCOME TO MY WEBSITE SEDERHANA INI";
    ?>
    </body>
    </html>
# cp /home/php/index.html /home/smk
    <body>
    <html>
    <h1>HELLOW</h1>
    <a href="about.php">About Us</a>-
    <?php
    echo "SALAM KENAL";
    ?>
    </body>
    </html>

# nano /etc/apache/apache.conf
    Include /etc/squirrelmail/apache.conf

# nano /etc/apache/sites-available/default

    <VirtualHost *:80>
        ServerAdmin admin@localhost
        ServerName smkyp.sch.id
        DocumentRoot /home/smk
    </VirtualHost>
   
    <VirtualHost 202.134.4.67:80>
        ServerAdmin admin@localhost
        ServerName mail.smkyp.sch.id
        DocumentRoot /usr/share/squirrelmail
    </VirtualHost>

    <VirtualHost 202.134.4.66:80>
        ServerAdmin admin@localhost
        ServerName ns.smkyp.sch.id
        DocumentRoot /home/php
    </VirtualHost>

# /etc/init.d/apache2 restart

# nano /etc/postfix/mail.cf
    home_mailbox = Maildir/
# /etc/init.d/postfix restart

# squirrelmail configure
    d : couirer
    s :
    q :

# cd /etc/skel
    skel# maildirmake Maildir/
    skel# adduser revi (password 123)
    skel# adduser revi1 (password 123)

# cd /etc/bind/
    bind# nano named.conf.local
        zone "smkyp.sch.id" {
        type master;
        file "/etc/bind/smk";
        };

        zone "ns.smkyp.sch.id"
        type master;
        file "/etc/bind/nama";
        };

        zone "mail.smkyp.sch.id
        type master;
        file "/etc/bind/mail";
        };

        zone "4.100.202.in-addr.arpa" }
        type master;
        file "/etc/bind/pusat";
        };

    bind# cp db.local smk
    bind# cp db.local nama       
    bind# cp db.local mail
    bind# cp db.127 smk

0 komentar:

Posting Komentar

Twitter Delicious Facebook Digg Stumbleupon Favorites More