1. Konfigurasi Ip address. (misalnya ip yang ingin digunaka adalah 192.168.9.1) nano /etc/network/interfaces ubah seperti:
2. Install bind9 dan pindah ke direktori bind - Install - Pindah direktori 3. Edit file named.conf.local
4. Konfigurasi named.conf dengan dua domain. Sebagai contoh buat tika.com dan smkn1.com
5. Buat dan edit “db.tika” dengan cara copy paste “db.local” ke “db.tika” dan “db.smkn1” - coppy paste cp db.local db.tika cp db.local db.smkn1 - Edit db.tika menjadi (ip yang dapat digunakan sesuai keinginan, disini yang IP digunakan 192.168.9.1)
- Edit db.tika menjadi (ip yang dapat digunakan sesuai keinginan, disini yang IP digunakan 172.10.10.1)
5. Buat dan edit “db.192” dan “db.172” dengan cara copy paste “db.255” ke “db.192” dan “db.172” - Copy Paste cp db.255 db.192 (ket: db.192 untuk domain tika.com) cp db.255 db.172 (ket: db.172 untuk domain smkn1.com) - Edit db.192 menjadi seperti ini: (ip yang dapat digunakan sesuai keinginan, disini yang IP digunakan 192.168.9.1)
- Edit db.172 menjadi seperti ini: (ip yang dapat digunakan sesuai keinginan, disini yang IP digunakan 172.10.10.1)
6. Periksa hasil editan dari db.tika , db.smkn1 dan db.192 , db.172. Hingga semuanya ok named-checkzone localhost /etc/bind/db.localhost contoh: named-checkzone tika.com /etc/bind/db.tika named-checkzone tika.com /etc/bind/db.smkn1 named-checkzone tika.com /etc/bind/db.192 named-checkzone tika.com /etc/bind/db.172 7. Edit “/etc/hosts” vim.tiny /etc/hosts ubah menjadi:
8. Edit “/etc/resolv.conf” vim.tiny /etc/resolv.conf
9. Restart dns /etc/init.d/bind9 restart
10. Lakukan pengujian 1. Cek dengan nslookup
2. Cek dengan dig
3. Ping
1. Install apache2 apt-get install apache 2 2. edit file /var/www/html/index.html
3. Install php5, php mysql, mysql-server catatan: bila diminta password, masukan password sesuai keinginan. Untuk contoh, passwordnya satu dan usernamenya root 4. Buat file info.php
5. restart apache, dan lakukan ujicoba di browser
6. Install phpmyadmin 7. konfigurasi file /etc/phpmyadmin/apache.conf
8. jalankan phpmyadmin melalui url
9. Edit /etc/apache2/sites-enabled/000-default.conf Edit menjadi seperti ini:
# The ServerName directive sets the request scheme, hostname and port that # the server uses to identify itself. This is used when creating # redirection URLs. In the context of virtual hosts, the ServerName # specifies what hostname must appear in the request's Host: header to # match this virtual host. For the default virtual host (this file) this # value is not decisive as it is used as a last resort host regardless. # However, you must set it for any further virtual host explicitly. ServerName www.tika.com ServerAdmin [email protected] DocumentRoot /var/www/ Options FollowSymLinks AllowOverride None
Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all # Available loglevels: trace8, ..., trace1, debug, info, notice, warn, # error, crit, alert, emerg. # It is also possible to configure the loglevel for particular # modules, e.g. #LogLevel info ssl:warn ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined # For most configuration files from conf-available/, which are # enabled or disabled at a global level, it is possible to # include a line for only one particular virtual host. For example the # following line enables the CGI configuration for this host only # after it has been globally disabled with "a2disconf". #Include conf-available/serve-cgi-bin.conf # The ServerName directive sets the request scheme, hostname and port that # the server uses to identify itself. This is used when creating # redirection URLs. In the context of virtual hosts, the ServerName # specifies what hostname must appear in the request's Host: header to # match this virtual host. For the default virtual host (this file) this # value is not decisive as it is used as a last resort host regardless. # However, you must set it for any further virtual host explicitly. ServerName www.smkn1.com ServerAdmin [email protected] DocumentRoot /var/www/smkn1 Options FollowSymLinks AllowOverride None
Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all # Available loglevels: trace8, ..., trace1, debug, info, notice, warn, # error, crit, alert, emerg. # It is also possible to configure the loglevel for particular # modules, e.g. #LogLevel info ssl:warn ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined # For most configuration files from conf-available/, which are # enabled or disabled at a global level, it is possible to # include a line for only one particular virtual host. For example the # following line enables the CGI configuration for this host only # after it has been globally disabled with "a2disconf". #Include conf-available/serve-cgi-bin.conf # vim: syntax=apache ts=4 sw=4 sts=4 sr noet 10. Buat direktori web server untuk smkn1 dalam /var/www 11. Buat file index.html di smkn1 dengan format
12. Lakukan pengecekan di web browser smkn1.com dan tika.com