Menambah Sub-Domain di Bind9

Humbh, mungkin udah pada tau kali ya kalo cuman nambahin sub-domain di bind9. Yah, cuma buat catatan aja kok. Oke?

Seph. Pertama buka dulu program putty, coz aq enakan ma program ini daripada langsung di komputernya. Udah login?



Sekarang dari direktori home, kita pindah ke direktori bind.

sudo cd /etc/bind/

Atau kalo ada yang naruh file db domainnya di dir lain, masuk ajah. Kalo aq sih untuk db domain aq buatin dir sendiri

sudo cd /etc/bind/zones/
Hm, gini aja, intinya :
IP komp aq:212.40.98.118
file db domain:/etc/bind/zones/domainku.com.db
file rev:/etc/bind/zones/rev.98.40.212.in-addr.arpa

And, untuk nambahin sub-domain, di file db nya :
sudo vi /etc/bind/zones/domainku.com.db
Kita tambahkan baris
zadunaINA212.40.98.118
fidaroinINA212.40.98.118


Di file rev nya :
sudo vi /etc/bind/zones/rev.98.40.212.in-addr.arpa
Kita tambahkan baris
118INNSzaduna.domainku.com.
118INNSfidaroin.domainku.com.


Oiya, jangan lupa direstart ya aplikasi bind9-nya. Seph!

Permalink Wordpress Tidak Jalan

Ketika migrasi atau membangun Wordpress pada sistem Ubuntu Server baik yang fresh install maupun tidak, ada kalanya permalink Wordpress tidak berjalan dengan baik yang ditandai dengan tampilnya pesan kesalahan “Not Found... The requested URL /about was not found on this server.” pada browser ketika kita mengakses link-link internal yang ada pada halaman muka (home).

Dugaan bahwa permalink menjadi penyebab kesalahan semakin kuat jika ternyata semua link-link internal bekerja dengan baik jika setting permalink (Menu Setting >> Permalinks) kita kembalikan ke settingan “Default” (http://www.domainku.com/?p=123). Permasalahan tersebut bisa diatasi dengan beberapa langkah troubleshoot dibawah ini.

Ganti File Permission .httacces menjadi writable


.htaccess merupakan file khusus yang berisi informasi konfigurasi yang harus dijalankan oleh web server untuk direktori dimana file tersebut di tempatkan. Konfigurasi tersebut berlaku hanya untuk direktori tersebut dan semua sub-sub direktori dibawahnya.

Ketika permalink di-set melalui admin (Menu Setting >> Permalinks) adakalanya tidak terjadi perubahan karena settingan yang baru tidak bisa diupdate / ditulis ke file .httaccess di server. Biasanya pesan kesalahan yang muncul adalah :

If your .htaccess file were writable, we could do this automatically, but it isn’t so these are the mod_rewrite rules you should have in your .htaccess file. Click in the field and press CTRL + a to select all.


Oleh sebab itu, sebelum perubahan di update / save maka File Permission .httaccess harus diubah dulu agar writable (777 atau 666).

Mengubah File Permission melalui FTP (Filedzilla) :
Klik Kanan file .htaccess >> File Attributes >> Masukkan 777 pada “Numeric Value”

Mengubah File Permission melalui SSH (putty) :

sudo chmod 777 .htaccess

Jika semua berjalan dengan baik, setelah setting permalink di update pada panel Admin Wordpress maka file .htaccess akan berisi :
Format Rewrite Rule Wordpress ▼
<ifModule mod_rewrite.c>
RewriteEngine On
RewriteBase ...
RewriteCond ...
RewriteRule ...
</ifModule>


Contoh Rewrite Rule untuk Custom Structure %postname% ▼
<ifModule mod_rewrite.c>
RewriteEngine On
RewriteBase /snipcode/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /snipcode/index.php [L]
</ifModule>


Jangan lupa, setelah perubahan di update / save dan permalink telah berjalan dengan baik, kembalikan File Permission .httaccess menjadi 644

Install dan aktifkan modul mod_rewrite.c pada Apache Server


mod_rewrite merupakan modul dari Server Apache yang memungkinkan permalink / fungsi rewrite urls on the fly terjadi atau sering disebut juga sebagai “URL Rewriting Engine“.
sudo a2enmod rewrite


Silahkan periksa apakah modul tersebut sudah ter-install dengan mengecek keberadaan file “rewrite.load”.
ls /etc/apache2/mods-enabled


Load rewrite.so pada php.ini (opsional)


Php.ini merupakan file konfigurasi untuk php interpreter.

Metode ini digunakan jika tidak bisa me-load module “mod_rewrite” dari apache server (misal bagi pengguna shared hosting) tetapi bisa membuat custom php.ini melalui hosting panel.

Silahkan tambahkan “extension=rewrite.so” pada konfigurasi dengan mengedit file tersebut :
vim /etc/php5/apache2/php.ini


Cari di bagian :
;;;;;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;;;;;


Dan tambahkan menjadi :
;;;;;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;;;;;
;
;.......
;
; Note that it should be the name of the module only; no directory information
; needs to go here. Specify the location of the extension with the
; extension_dir directive above.

extension=rewrite.so

Setelah perubahan disimpan, jangan lupa untuk restart service.
sudo /etc/init.d/apache2 restart


Untuk meyakinkan apakah modul mod_rewite sudah diload dan aktif bersama PHP, silahkan buat dan jalankan file phpinfo.php berikut.
<html>
<?php phpinfo(); ?>
</html>

Akan terlihat bahwa “mod_rewrite” merupakan salah satu modul yang diload pada box “Apache2 Handler” bagian “Loaded Modules”.

AllowOverRide All


.htaccess sudah writable, modul mod_rewrite sudah di-enable, setting php.ini sudah diubah namun permalink masih tetap tidak jalan. Selidik punya selidik ternyata webserver Apache akan mengabaikan rewrite rules maupun .htaccess-files jika settingan AllowOverRide pada file konfigurasi situs diset “None”.

Silahkan ubah value AllowOverRide tersebut menjadi “All” dengan mengedit file konfigurasi situs :
vim /etc/apache/sites-available/001-situsku


Cari di bagian :
<directory /var/www/situsku/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</directory>


Ubah menjadi :
<directory /var/www/situsku/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</directory>

Setelah perubahan disimpan, jangan lupa untuk restart service.

source : http://202.47.72.251/snipcode/2008/12/10/permalink-tidak-jalan-pada-saat-migrasi-wordpress/

Permasalahan DNS Server

Hm, gini loh teman². Aq kan baru aja nginstall Ubuntu Server 9.04 untuk DNS Server. Aplikasi DNS Server aq pilih BIND9 yang udah terbukti mantap. Tapi sayangnya, aq masih bingung buat zonenya masing². Gini, langsung ajah ke pokok permasalahan.

Asumsi IP Address DNS Server Statis
IP DNS Server:124.81.165.149
Website:http://www.visitel.net.id
Netmask:124.81.165.145
Hostname:ns1

Langkah² yang aq telah aq lakukan :
1. Install DNS Server
sudo apt-get install bind9

2. Konfigurasi file named.conf.local
vi /etc/bind/named.conf.local
aq isi dengan

zone "visitel.net.id" {
type master;
file "/etc/bind/zones/visitel.net.id.db";
};

zone "165.81.124.in-addr.arpa" {
type master;
file "/etc/bind/zones/rev.165.81.124.in-addr.arpa";
};

3. Agar dapat mengakses dirinya sendiri
vi /etc/resolv.conf
aq isi dengan
search visitel.net.id
nameserver 124.81.165.149
4. Buat zona untuk DNS Server
mkdir /etc/bind/zones
vi /etc/bind/zones/visitel.net.id.db

aq isi dengan
$TTL 1500
@ IN SOA ns1.visitel.net.id. root (
2009061103
28800
3600
604800
38400
);
visitel.net.id. IN NS ns1.visitel.net.id.
ns1 IN A 124.81.165.149
www IN CNAME ns1
ftp IN CNAME ns1
5. Konfigurasi domain ke IP
/etc/bind/zones/rev.165.81.124.in-addr.arpa
aq isi dengan
$TTL 1500
@ IN SOA ns1.visitel.net.id. root (
2009061103
28800
3600
604800
38400
);
IN NS ns1.visitel.net.id.
149 IN PTR ns1.visitel.net.id.
6. Restart DNS Server
/etc/init.d/bind9 restart

Nah . . . setelah itu semua aq kerjain, aq cek pake nslookup, ping, ma dig. Dan apa coba? Berikut permasalahan
1. Pengecekan dengan
nslookup ke ns1.visitel.net.id = sukses
nslookup ke visitel.net.id = gagal dengan peringatan "Can't find visitel.net.id: No answer"
2. Pengecekan dengan
ping ke ns1.visitel.net.id = sukses
ping ke visitel.net.id = unknown host visitel.net.id

Yang aq pingin, ns1.visitel.net.id buat nameserver tapi visitel.net.id juga bisa dipakai. Ada yang punya solusi? Pliz yang udah ngerti bantuin beri jawabannya ya!

Install Ubuntu 9.04 Jaunty Jackalope

Tadi malam abis download Ubuntu Server yang terbaru dari repo UGM, burning at CD, and then install. Muantep dah! Apalagi komputer yang diinstall Ubuntu dengan codename Jaunty Jackalope ini tersambung dengan internet. Wekekekek.

Meski komputer yang diinstal masih Pentium 3 tapi lancar-lancar aja tuh. Yah, namanya aja diinstall minimalis bro. Hehehe. Apalagi dengan RAM yang cuma 256mb.

Rencananya sih komputer ini mau aq buat web server with IP publik. Wordpress juga sudah diunduh tadi pagi, dan tinggal install. LAMP juga sudah jalan. Ga apa-apa lah cuma dapet harddisk 6,4 GB. Tapi kalo buat sendiri sih. Kan lumayan tuh! Daripada hosting di tempat lain. Ini kan gratis. Xixixixi.

Ya udah, segitu dulu laporannya. Huft, besok senin udah masuk sekolah lagi nie. Potong rambut dulu ah!

DoISO 2.0.0.6

An easy-to-use piece of software for creating and burning archives from an optical disc, namely ISOs.

Features:
Creates ISO images;
Burns ISO images;
CD and DVD support.

Download this file

Creating ISO images can be done in many ways as this archive format has gained more and more turf due to its easy handling. ISOs shelter all the files, preserving the original structure, just like any other archive, the difference being that ISO images can be mounted on virtual drives and manipulated just as if they were unarchived, which means that you can read any data on the mounted virtual drive with no restriction.

The suite of software designed to create ISO images includes both freeware as well as paid apps perfectly capable of archiving data in this format. There is also a wide range of software specially built to mount ISO as a virtual drive.

DoISO, an application built to help you create ISO images, can be downloaded and used for as long as you want, as it is completely free of charge and distributed under the GPL license. It’s a simple and easy to use application that does not feature special requirements except for the fact that it needs Microsoft .NET Framework 2.0 to work. It is actually an ISO creation frontend for “mkisofs,” which is used for premastering ISO9660 filesystems used on CD-ROMs, and whose output can be burnt on a CD with specific software. It has support for many formats, including Rock Ridge, Joliet, and Apple HFS (beta).

The Create ISO tab of DoISO enables you to select the folder from which you want to create your image. It also asks you to set a Volume Label and to select whether or not you want to burn the image when it is complete. You can choose to burn it to a DVD or CD and also erase the storage media first, in case it supports the action (RW), an option that reveals the other side of DoISO – it is not just an ISO maker but also an ISO burner.

The first thing that might strike you as odd is the complete absence of a minimize button, which basically means that you can’t have the program work in the background, thus you are stuck with it on your desktop.

You also have at your disposal the option Burn existing ISO image in case you want to make a copy of a formerly created image or if you just didn’t have the disc at the time you created it. You can also select to erase first and set the speed at which you want the burning to take place.

Another choice that this tab offers you is whether or not to have a postgap for the image, and here you also have the ‘session at once’ option, according to your needs. Postgap is just digital silence like writing 0's to the sector. It’s really just a run-off area to make it easier to see the difference between tracks. That might come in handy if you burn two or more tracks on a disc, but I don't see its usefulness if you're burning just one.

The last tab of the application, ISO Creation Options, allows you to select the ISO level or the custom command line parameters. Another option is the “Optimise Duplicates” – you might have noticed that the word “optimize” is misspelled, but this is for further optimization of the ISO that you create. Also in this section you can choose to add a preparer and publisher to your newly created image.

The problems begin when you want to burn an ISO using this piece of software. It doesn’t do the job and gets stuck without leaving you any possibility of doing something about it. This means that you can use it to create the archived image but you have to resort to another program to burn it on to a CD or DVD.

All in all, this is a handy and very easy to use application for those who need their information archived in this particular format. It gets the job done, for no money at all and with almost no bother.

The Good
DoISO is a simple program that does exactly what it’s supposed to do – it creates and burns ISO in a fast and reliable way and without too much effort on your part – and for the inexperienced user it is quite perfect.

The Bad
Advanced users could see the simplicity of the software as a downside, since they might expect a better interface or a number of options that DoISO does not offer. Of course, the burning part is the worst.

The fact that one very important feature of the program is not working at the necessary parameters can only mean a big minus for the application, since it means it’s not 100% efficient.

The Truth
Overall, DoISO can satisfy the picky users, as it is a handy program for creating and burning mkisofs ISOs. Even if there’s room for some more improvements, like a better customization of the DVD options, it’s an application that helps you with your work for absolutely no money at all. The part that still requires some work done is the fact that the burning utility doesn’t work and which can ruin your day.

Here are some snapshots of the application in action: