SMEOnffLine: Mengubah nama mesin dan DNS Server lokal

From OnnoWiki
Revision as of 09:23, 6 January 2010 by Onnowpurbo (talk | contribs)
Jump to navigation Jump to search

Misalnya nama server yang anda inginkan adalah

ukm.co.id

Set /etc/hostname

# echo ukm.co.id > /etc/hostname

Set /etc/hosts

# vi /etc/hosts

isi dengan

127.0.0.1      localhost
192.168.0.254  ukm.co.id ukm mahara.ukm.co.id www.ukm.co.id
ip.add.server  ukm.co.id ukm mahara.ukm.co.id www.ukm.co.id

Set DNS Server

SMEOnffLine:Manual DNS Server Menggunakan Webmin

Pastikan Create New Master Zone dengan Entry kira-kira

$ttl 38400
ukm.co.id.	IN	SOA	ukm.co.id. admin1.ukm.co.id. ( 
			1262744478
			10800
			3600
			604800
			38400 )
ukm.co.id.	IN	NS	ukm.co.id.
ukm.co.id.	IN	A	192.168.0.254
www.ukm.co.id.	IN	A	192.168.0.254
mahara.ukm.co.id.	IN	A	192.168.0.254
mail.ukm.co.id.	IN	A	192.168.0.254
smtp.ukm.co.id.	IN	A	192.168.0.254
pop3.ukm.co.id.	IN	A	192.168.0.254
imap.ukm.co.id.	IN	A	192.168.0.254
ukm.co.id.	IN	MX	10 ukm.co.id.

Set hostname pada Postfix SMTP Server

# vi /etc/postfix/main.cf

Misalnya

myhostname = ukm.co.id
mydestination = ukm.co.id

Set nama hostname pada Webmail

/usr/sbin/squirrelmail-configure
  2 -> 1 -> ukm.co.id  -> S -> Q

Sesuaikan /etc/apache2/sites-enabled/mahara-httpd.conf

vi /etc/apache2/sites-enabled/mahara-httpd.conf
<VirtualHost *:80>
        ServerName mahara.ukm.co.id
        DocumentRoot /var/www/mahara/htdocs

        ErrorLog /var/log/apache2/mahara.error.log
        CustomLog /var/log/apache2/mahara.access.log combined

        <Directory /var/www/mahara/htdocs>
                AllowOverride All
        </Directory>
</VirtualHost>

Pranala Menarik