Android Tutorial

Belajar Android Tutorial, lengkap, mudah di pahami, dilengkapi dengan video tutorial Newbie pun Bisa!

Administrasi Server

Belajar Administasi Server buat SMK TKJ dkk, Web Server, Gateaway Server, DNS Server, Squerrel Mail Server, Router Server, dll

Belajar Website

Belajar Website step by step, untuk pemula bisa, untuk yang sudah mahir juga ok. . mulai dari HTML, CSS, PHP, SQL, JavaScript, dkk

This is default featured post 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured post 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

Mar 29, 2010

Cara melihat password ter-asterisk (******)

password ter-asterisk adalah sebuah password hidden seperti hal nya bintang-bintang ketika kita mengetik sebuah password seperti ini (*******)
program ini juga bisa di gunakan untuk password facebook, gmail, atau ymail/yahoo mail, massanger yahoo, tak itu saja tetapi bisa di gunakan untuk website juga untuk mengetahui (****) tersebut

cara licik tersebut menggunakan program SnadBoy’s Revelation. program ini dapat di unduh/download secara gratis di internet silahkan browsing z....

SnadBoy Software

Welcome to this abbreviated version of the SnadBoy web site.
If you find SnadBoy Software products helpful please consider making a donation to help defray development costs.


Rest assured that Revelation and TopDesk are and will remain FREE - thanks for your support

To download Revelation v2.0 click here

To download TopDesk click here

For support, send e-mail to support@snadboy.com

Program ini berupa “Lingkaran +” cara menggunakan cukup arahkan tanda lingkaran tersebut :




Cara menghilangkan Windows Genuine Victim di XP

bagi anda semua yang punya masalah dengan win XP bajakan??suka ada tulusan genuin victim, yang mungkin mengganggu aktifitas nya maka dari itu dari tutorial ini saya akan berikan bagaimana cara menghapus genuin tersebut :


Untuk mengatasinya berikut ini ada trik untuk menghilangkan tampilan tersebut saat start up.

Menghilangkan Peringatan Windows Genuine Advance (WGA)

Langkah2nya adalah sebagai berikut :

  • Buka Task Manager dengan menekan “Ctrl+Alt+Del
  • Matikan proses yang bernama “wgatray.exe”
  • Restart computer dan masuklah ke dalam Safe Mode (biasanya dengan menekan tombol F8)
  • Pada Safe Mode, buka registry editor dengan cara klik Start \\ Run. Ketik “regedit” kemudian ENTER
  • Pada regedit, carilah: HKEY_LOCAL_MACHINE \\ SOFTWARE \\ Microsoft \\ windowsNT \\ CurrentVersion \\ Winlogon \\ Notify
  • Kemudian hapus folder/directory “WGALOGON”
  • Restart kembali komputer seperti biasa

agar victim windows genuin gk da lagi maka uninstall file : WGA tersebut dengan cara :
Uninstall Windows Genuine Advance (WGA)
Caranya:

  • Matikan process “wgatray.exe” di Task Manager
  • Restart Windows XP dan masuk safe mode
  • Delete WgaTray.exe dari c:\Windows\System32
  • Delete WgaTray.exe dari c:\Windows\System32\dllcache
  • Buka RegEdit, cari: HKEY_LOCAL_MACHINE \\ SOFTWARE \\ Microsoft \\ Windows NT \\ CurrentVersion \\ Winlogon \\ Notify
  • Delete folder “WgaLogon” dan seluruh isinya
  • Reboot Windows XP

Mar 28, 2010

install secure bind

Tulisan ini berawal dari keisengan saya yang ingin membuat server saya menjadi lebih optimal dan lebih terhindar dari hal-hal yang tidak diinginkan. Awalnya saya ingin membuat sebuah NS server menggunakan Bind untuk domain baru saya, setelah instalasi selesai lalu saya mencoba menchek hasil dari konfigurasi saya pada http://dnsreport.com/tools/dnsreport.ch?domain=a.isplud.net

Walhasil pada baris ke 5, ada warna merah dengan huruf KAPITAL bertuliskan FAIL Open DNS servers dan ada keterangan di sebelah kanannya.

"ERROR: One or more of your nameservers reports that it is an open DNS server. This usually means that anyone in the world can query it for domains it is not authoritative for (it is possible that the DNS server advertises that it does recursive lookups when it does not, but that shouldn't happen). This can cause an excessive load on your DNS server. Also, it is strongly discouraged to have a DNS server be both authoritative for your domain and be recursive (even if it is not open), due to the potential for cache poisoning (with no recursion, there is no cache, and it is impossible to poison it). Also, the bad guys could use your DNS server as part of an attack, by forging their IP address. Problem record(s) are: ..."


Hmm... saya kira awalnya bind yang saya install telah bener-benar secure, selain jailed pada version juga saya hide menjadi “Tong noong Goblok”, setelah mendapat tulisan error di atas, akhirnya saya berpikir, wah kalo demikian NS saya masih kayak jalan tol blas... blas... tinggal tunggu waktu aja ada yang query rame-rame akan terjadi hal-hal yang tidak diinginkan. Ok, kita sudahi saja omong kosong yang tidak berguna ini, mari kita lanjutkan ke tahap berikutnya yaitu instalasi Bind.

#cd /usr/ports/dns/bind9

#make ; make install

Jrenggg... beres dah proses instalasi. Betapa nikmatnya menggunakan FreeBSD ini, tahap selanjutnya mengkonfigurasi.

Acuan konfigurasi yang saya gunakan merujuk ke situs http://www.cymru.com/Documents/secure-bind-template.html, lalu disesuaikan dengan konfigurasi network saya.

# cd /etc/namedb
# pico named.conf

-------------isi file named.conf---------------------------

// @(#)named.conf 02 OCT 2001 Rob Thomas robt@cymru.com
// Set up our ACLs
// In BIND 8, ACL names with quotes were treated as different from
// the same name without quotes. In BIND 9, both are treated as
// the same.

acl "xfer" {
69.94.133.163; // Allow no transfers. If we have other
// name servers, place them here.
// Note that in the Netherlands, for example,
// the TLD servers 193.176.144.2, 194.53.253.100, and 193.176.144.128/28
// are allowed to perform zone tranfers from the domains under.nl. The
// RIPE NCC had requested in the past that reverse (in-addr.arpa) zones
// permit zone transfer requests from 193.0.0.0/23.

};

acl "trusted" {
// Place our internal and DMZ subnets in here so that
// intranet and DMZ clients may send DNS queries. This
// also prevents outside hosts from using our name server
// as a resolver for other domains.
localhost;
};

acl "bogon" {
// Filter out the bogon networks. These are networks
// listed by IANA as test, RFC1918, Multicast, experi-
// mental, etc. If you see DNS queries or updates with
// a source address within these networks, this is likely
// of malicious origin. CAUTION: If you are using RFC1918
// netblocks on your network, remove those netblocks from
// this list of blackhole ACLs!
0.0.0.0/8;
1.0.0.0/8;
2.0.0.0/8;
5.0.0.0/8;
7.0.0.0/8;
10.0.0.0/8;
7.0.0.0/8;
10.0.0.0/8;
23.0.0.0/8;
27.0.0.0/8;
31.0.0.0/8;
36.0.0.0/8;
37.0.0.0/8;
39.0.0.0/8;
42.0.0.0/8;
49.0.0.0/8;
50.0.0.0/8;
77.0.0.0/8;
78.0.0.0/8;
79.0.0.0/8;
92.0.0.0/8;
93.0.0.0/8;
94.0.0.0/8;
95.0.0.0/8;
96.0.0.0/8;
97.0.0.0/8;
98.0.0.0/8;
99.0.0.0/8;
100.0.0.0/8;
101.0.0.0/8;
102.0.0.0/8;
103.0.0.0/8;
104.0.0.0/8;
105.0.0.0/8;
106.0.0.0/8;
107.0.0.0/8;
108.0.0.0/8;
109.0.0.0/8;
110.0.0.0/8;
111.0.0.0/8;
112.0.0.0/8;
113.0.0.0/8;
114.0.0.0/8;
115.0.0.0/8;
116.0.0.0/8;
117.0.0.0/8;
116.0.0.0/8;
117.0.0.0/8;
118.0.0.0/8;
119.0.0.0/8;
120.0.0.0/8;
169.254.0.0/16;
172.16.0.0/12;
173.0.0.0/8;
174.0.0.0/8;
175.0.0.0/8;
176.0.0.0/8;
177.0.0.0/8;
178.0.0.0/8;
179.0.0.0/8;
180.0.0.0/8;
181.0.0.0/8;
182.0.0.0/8;
183.0.0.0/8;
184.0.0.0/8;
185.0.0.0/8;
186.0.0.0/8;
187.0.0.0/8;
192.0.2.0/24;
192.168.0.0/16;
197.0.0.0/8;
223.0.0.0/8;
224.0.0.0/3;
};

logging {
channel default_syslog {
// Send most of the named messages to syslog.
syslog local2;
severity debug;
};

channel audit_log {
// Send the security related messages to a separate file.
file "/etc/namedb/log/log";
severity debug;
print-time yes;
};

category default { default_syslog; };
category general { default_syslog; };
category security { audit_log; default_syslog; };
category config { default_syslog; };
category resolver { audit_log; };
category xfer-in { audit_log; };
category xfer-out { audit_log; };
category notify { audit_log; };
category client { audit_log; };
category network { audit_log; };
category update { audit_log; };
category queries { audit_log; };
category lame-servers { audit_log; };

};
// Set options for security

options {

directory "/etc/namedb";
pid-file "/var/run/named/pid";
statistics-file "/var/stats/named.stats";
memstatistics-file "/var/stats/named.memstats";
dump-file "/var/dump/named_dump.db";
zone-statistics yes;
listen-on { 127.0.0.1; 192.168.1.254 ; 202.153.240.1 ; 202.159.32.2 ; 202.159.33.2 ; };

// Prevent DoS attacks by generating bogus zone transfer
// Prevent DoS attacks by generating bogus zone transfer
// requests. This will result in slower updates to the
// slave servers (e.g. they will await the poll interval
// before checking for updates).

notify no;

// Generate more efficient zone transfers. This will place
// multiple DNS records in a DNS message, instead of one per
// DNS message.

transfer-format many-answers;
// Set the maximum zone transfer time to something more
// reasonable. In this case, we state that any zone transfer
// that takes longer than 60 minutes is unlikely to ever
// complete. WARNING: If you have very large zone files,
// adjust this to fit your requirements.

max-transfer-time-in 60;

// We have no dynamic interfaces, so BIND shouldn't need to
// poll for interface state {UP|DOWN}.

interface-interval 0;

allow-transfer {
// Zone tranfers limited to members of the
// "xfer" ACL.
xfer;
};

allow-query {
// Accept queries from our "trusted" ACL. We will
// allow anyone to query our master zones below.
// This prevents us from becoming a free DNS server
// to the masses.

trusted;
};

blackhole {
// Deny anything from the bogon networks as
// detailed in the "bogon" ACL.
bogon;
};
};

view "internal-in" in {
// Our internal (trusted) view. We permit the internal networks
// to freely access this view. We perform recursion for our
// internal hosts, and retrieve data from the cache for them.
match-clients { trusted; };
recursion yes;
additional-from-auth yes;
additional-from-cache yes;

zone "." in {
type hint;
file "db.cache";
};



zone "0.0.127.in-addr.arpa" in {
// Allow queries for the 127/8 network, but not zone transfers.
// Every name server, both slave and master, will be a master
// for this zone.
type master;
file "master/db.127.0.0";

allow-query { any; };
allow-transfer { none; };
};

// Create a view for external DNS clients.

view "external-in" in {
// Our external (untrusted) view. We permit any client to access
// portions of this view. We do not perform recursion or cache
// access for hosts using this view.

match-clients { any; };
recursion no;
additional-from-auth no;
additional-from-cache no;

// Link in our zones

zone "." in {
type hint;
file "db.cache";
};

zone "a.isplud.net" in {
type master;
file "master/db.a.isplud.net";
allow-query { any; };
};

zone "12.252.66.in-addr.arpa" {
type master;
file "master/db.ip";
allow-query { any; };
};
};

view "external-chaos" chaos {
match-clients { any; };
recursion no;

zone "." {
type hint;
file "/dev/null";
};

zone "bind" {
type master;
file "master/db.bind";
allow-query { trusted; };
allow-transfer { none;};
};
};

-------------isi file named.conf---------------------------

buat file db.cache yang isinya adalah named.root

# cp named.root db.cache

lalu buat db.bind zonefile

@(#)db.bind v1.2 25 JAN 2001 Rob Thomas robt@cymru.com ;
$TTL 1D
$ORIGIN bind.
@ 1D CHAOS SOA localhost. root.localhost. (
2001013101 ; serial
3H ; refresh
1H ; retry
1W ; expiry
1D ) ; minimum

CHAOS NS localhost.
version.bind. CHAOS TXT "BIND 9.1.3+robhacks"
authors.bind. CHAOS TXT "are better coders than I.:)"

selanjutnya buat zone yang lain nya yaitu xone domain saya

#pico db.a.isplud.net

$TTL 86400
$ORIGIN a.isplud.net.
@ IN SOA aztech.a.isplud.net. ogb.indofreebsd.or.id. (
2006031307; serial
28800
7200
1209600
86400
)

IN NS aztech.a.isplud.net.
IN NS zerg.a.isplud.net.
IN NS athena.a.isplud.net.
IN NS zeus.a.isplud.net.
IN NS ns2.afraid.org.
IN A 66.252.12.50

$ORIGIN a.isplud.net.
aztech IN A 66.252.12.50
zerg IN A 66.252.12.51
athena IN A 66.252.12.2
zeus IN A 66.252.12.3
admin IN A 66.252.12.125
razor.cybertech IN A 66.252.12.126

membuat file zone ptr

#pico db.ip
$ORIGIN.
$TTL 3600 ; 1 hour
12.252.66.in-addr.arpa IN SOA aztech.a.isplud.net. ogb@indofreebsd.or.id . (
2006032023;
28800
14400
3600000
86400
)

IN NS aztech.a.isplud.net.
IN NS zerg.a.isplud.net.
IN NS athena.a.isplud.net.
IN NS zeus.a.isplud.net.

$ORIGIN 12.252.66.in-addr.arpa.
125 IN PTR admin.a.isplud.net.
126 IN PTR razor.cybertech.a.isplud.net.

nah sampe di sini selesailah kita membuat sebuah DNS server yang secure versi http://www.cymru.com/Documents/secure-bind-template.html

Maaf bila ada kekurangan pada tulisan ini yang semata-mata karena keterbatasan pengetahuan saya dan keterbatasan waktu saya untuk mengexplore lebih jauh tentang bind security.

Akhir kata saya ucapkan banyak terima kasih kepada semua teman saya di #indofreebsd irc.dal.net

Browser Internet Tercepat 2010 (erickiso.blogspot.com)



Browser...........pasti sudah tidak asing lagi yang dinamakan dengan browser...........
mencari...yang ini browser internet yang berbeda........saya jamin lebih cepat dari browser yang lain di tahun 2010 ini................coba za langsung ke TKP....

sekilas tentang google crome :

Google Chrome adalah sebuah penjelajah web sumber terbuka yang dikembangkan oleh Google dengan menggunakan mesin renderingWebKit. Proyek sumber terbukanya sendiri dinamakan Chromium.[1]

Versi beta untuk Microsoft Windows diluncurkan pada 2 September 2008 dalam 43 bahasa. Versi Mac OS X dan Linux sedang dalam pengembangan dan dijadwalkan untuk dirilis tak lama lagi[2][3][4].


wikipedia>>


langsung za download google crome terbaru di :

http://www.google.com/chrome


selamat mencoba

FASTER.........................Jangan lupa pake Helm dan Jaket...Browsing Ngebutttt banget dengan google crome..

Browser Tercepat Untuk Windows detiknet.com


Browser Tercepat untuk PC Windows Meluncur
Ardhi Suryadhi - detikinet


Ilustrasi (Ist.)
Jakarta - Browser yang diklaim paling cepat untuk berlari di komputer bersistem operasi Windows rupanya bukan Internet Explorer, yang sama-sama besutan Microsoft. Melainkan browser Opera 10.50.

Opera begitu percaya diri dengan klaimnya tersebut. Bahkan dikatakan Chief Executlahive Opera, Lars Boilesen, Opera 10.50 menjadi browser tercepat dalam semua tes yang dilakukan.

"Apa artinya untuk Anda: Tak akan ada lagi waktu menunggu untuk situs yang sedang didownload," lanjutnya, dikutip detikINET dari PC Magazine, Rabu (3/3/2010).

Meski demikian, Boilesen juga mengakui bahwa yang terpenting bukanlah pada hasil uji coba. Namun bagaimana kenyataannya di lapangan, apakah juga dapat berlari dengan sangat cepat atau hanya hasil mentereng di atas kertas.

Opera 10.50 sendiri saat ini sudah dapat diunduh oleh pengguna. Untuk pengguna Windows sudah disediakan dalam pilihan 42 bahasa. Sementara bagi pengguna Mac dan Linux sepertinya masih harus bersabar menunggu kedatangannya.

Upgrade dari browser ini juga termasuk engine baru dari JavaScript-nya yang dikenal dengan nama Carakan serta perpustakaan grafis, dubbed Vega. ( ash / faw )

Dapatkan berita daerah, gossip & olahraga diHandphone Nokia dengan mengaktifkan layanan Nokia Life Tools

Tetap update informasi di manapun dengan http://m.detik.com dari browser ponsel anda!

Mar 25, 2010

4 Tools Mengembalikan Data yang Terhapus

Pernah menghapus file-file penting di komputer tanpa disengaja? Kasus seperti ini mungkin pernah menimpa Anda, terkadang terjadi karena kita tengah terburu-buru atau dikejar waktu.

Namun jangan khawatir, Anda bisa menggunakan tools khusus untuk mengembalikan file-file tadi. Berikut ini ada 4 tools yang bisa Anda gunakan untuk mengembalikan file yang terhapus. Tools ini dapat di-download secara gratis di internet.

1. Undelete Plus
Di antara aplikasi-aplikasi gratis yang beredar di luaran untuk mengembalikan file yang terhapus, Undelete Plus salah satu yang dapat digunakan. User interface-nya (antar muka) tergolong sangat simpel. Anda dapat mengembalikan file-file yang terhapus dengan mudah sesuai dengan tipe file, misalnya Application, GIF graphics, HTML Documents, PDF.

Tools ini beroperasi pada sistem operasi Windows 95, Windows 98, Windows Me, Windows NT, Windows 2000, Windows XP, Windows 2003 dan Windows Vista. Anda dapat men-download Undelete Plus di:http://www.undelete-plus.com/

2. Restoration
Restoration adalah salah satu aplikasi untuk mengembalikan file yang terhapus. Tools ini juga sangat mudah digunakan dan tidak perlu diinstal di komputer. Cukup download toolsnya di:http://www.snapfiles.com/get/restoration.html, lalu jalankan file executable-nya untuk mengembalikan file yang terhapus.

3. PC Inspector File Recovery
Meski user interface PC inspector File Recovery tidak begitu user friendly, aplikasi ini tergolong sangat ampuh untuk mendeteksi dan mengembalikan file yang terhapus. Sesudah dilakukan proses scanning, akan tersaji file-file yang terhapus dalam folder dengan struktur pohon (tree structure) untuk mempermudah pencarian. Dengan begitu, Anda dengan mudah dapat mencari dan memilih file/folder yang terhapus, lalu klik icon "save" untuk mengembalikan file. Tools ini dapat di-download di: http://www.pcinspector.de/Sites/file_re ... language=1

4. Recuva
Recuva sering disebut juga sebagai "Recover". User interface-nya sangat sederhana. Pada mode basic, tools ini akan menampilkan daftar file-file yang terhapus yang bisa dikembalikan. Jika Anda menggantinya ke mode advanced, maka proses scanning ulang akan dilakukan dan muncul pilihan untuk menampilkan informasi berisi daftar file-file yang terhapus. Tools ini dapat di-download di: http://www.recuva.com/

Sumber : http://www.jasakom.com

Mar 24, 2010

Membuat Buku Tamu / ShoutMix di Blog























agar bisa komunikasi di blog, kurang lebih mungkin namanya BUKU TAMU,,,shoutmix ini adalah sesuatu yang alternatif yang banyak dipakai oleh blogger bahkan website, agar bisa berkomunikasi,,,mengapa saya memilih shoutmix,,mungkin salah satunya shoutmix jarang terjadi error atau hang dsb...langsung ke TKP...
daftar http://www.shoutmix.com, tunggu hingga muncul gambar : .

Kemudian Klik " Create Your Shoutmix Now", lalu centang Term of Servicenya lalu isi data anda Trus klik Continue
Tampilan awal shoutmix

Langkah - langkah sebagai berikut :
  1. Jika anda sudah terdaftar, tinggal login dengan user name dan pasword.
  2. Dalam Choose style pilih aja yang di sukai disitu ada compact, tag dll. jika udah klik Continue (saran saya pilih tag karna lebih enak di pandang).
  3. Terus pilih style & color untuk mengedit warna teks, background dll, klik get kode untuk pemasangan
  4. Copy paste kode HTML nya dan pasang di blog anda
  5. Agar shoutbox nya sesuai ukuran lebar sidebar , anda bisa merubah ukuran lebar ataupun tinggi dari shoutbox , caranya tinggal merubah angka Width ( lebar) dan Height (tinggi) dari dalam kode HTMLshoutbox tersebut.
  1. Contoh scriptnya :

Langkah - langkah penambahan element di blog :
  1. Login
  2. Klik menu Layout / Tata Letak
  3. Klik Page Element
  4. Klik add Gadget
  5. Tambah element HTML/JavaScript
  6. Paste kode HTML shoutbox anda di dalam form Content
  7. Klik tombol Save Changes
  8. Tekan tombol Save...
Tampilan yang akan muncul pada blog anda :

Windows 8 (Realease Terbaru dari Windows)


Windows 8 logoMicrosoft Windows 8, Windows Server 2012, and Microsoft Office 2012Menurut laporan dari MSFTKitchen Desember tahun lalu, menyebutkan bahwaMicrosoft tampaknya akan merilis system operasi baru di bulan Juli 2011. Sementara itu, Microsoft juga akan merilis Windows Server 2012 dan Office 2012 yang akan dipublikasikan di bulan Juli 2012.

Dan dari sebuah blog di MSDN milik karyawan Microsoft yang bernama Chris Green memiliki informasi mengenai tanggal rilis produk-produk Microsoft di masa yang akan datang, termasuk Windows 8,Windows Server 2012 (Windows 8 Server) dan Microsoft Office 2012

Pernyataan Chris di blog miliknya :

“The content of this site are my own personal opinions and are not intended to represent my employer’s view. These postings are provided “AS IS” with no warranties, and confer no rights.”

windows 2012 release roadmapMicrosoft Windows 8, Windows Server 2012, and Microsoft Office 2012

Windows 8 Release Date :

RTM: Friday, July 1, 2011
Mainstream Support: Friday, July 1, 2011 – Thursday, July 1, 2016
Extended Support: Friday, July 1, 2016 – Thursday, July 1, 2021

Windows Server 2012 (Windows 8 Server) :

RTM: Monday, July 2, 2012
Mainstream Support: Monday, July 2, 2012 – Friday, June 30, 2017
Extended Support: Monday, July 3, 2017 – Friday, July 1, 2022

Office 2012 (Office 15) :

RTM: Monday, July 2, 2012
Mainstream Support: Monday, July 2, 2012 – Friday, June 30, 2017
Extended Support: Monday, July 3, 2017 – Tuesday, July 5, 2022

Jika informasi diatas benar, maka menunjukkan bahwa persaingan di pasar Operating System makin sengit. Terutama dengan hadirnya System Operasi Google Chrome. Dan tentunya Microsoft tetap berambisi untuk memenangkan kompetisi dan menguasai pasar Operating System. Apalagi dengan kehadiran

Mar 23, 2010

WEB SERVER FREE BSD?

Mungkin kata web server tidak asing lagi di sebagian besar telinga kita, yaitu sebuah tempat untuk mempublikasikan informasi apa pun kepada publik melalui internet atau intranet tentang apa saja, baik oleh individu, kelompok, lembaga pemerintahan, perusahaan, dan lain-lain. Web server umumnya tidak berdiri sendiri, namun ada aplikasi yang mendukungnya, semacam PHP, OpenSSL, dan lain sebagainya. Salah satu aplikasi yang sudah sangat populer adalah Apache HTTP Server. Aplikasi ini mulai dirilis ke publik sejak tahun 1995. Web server yang menggunakan aplikasi Apache di seluruh dunia saat ini berdasarkan survei Netcraft Web Server Survey pada November 2006 saja sudah lebih dari 60% dari total 101,435,253 situs.

Proyek Apache HTTP Server ini merupakan proyek open-source yang dikembangkan oleh Apache Software Foundation. Lembaga ini bertujuan mengembangkan Apache sebagai aplikasi web server modern yang bisa dipergunakan di multi platform OS, khususnya Unix dan Windows.

Saya tidak akan membahas sejarah perkembangan Apache ini secara rinci. Untuk mengetahui lebih lengkap perkembangannya silakan kunjungi About the Apache HTTP Server Project.

Dalam artikel ini, saya tidak hanya membahas Apache secara khusus saja, namun juga beberapa aplikasi yang umum dipergunakan bersama aplikasi ini, seperti OpenSSL, MySQL, dan PHP.

1. Download

Aplikasi yang dipergunakan dalam artikel ini adalah Apache versi 2.2.3, MySQL versi 5.0.22, OpenSSL versi 0.9.8d, dan PHP versi 5.2.0.

Dari semua aplikasi di atas, hanya Apache dan PHP yang akan diinstall secara manual, sedang MySQL dan OpenSSL diinstall via ports. Jadi yang akan didownload secara manual hanya Apache dan PHP.

Apache versi terakhir dapat didownload di http://apache.the.net.id/httpd/httpd-2.2.3.tar.bz2. Versi terakhir Apache saat artikel ini ditulis adalah versi 2.2.3. Dan versi PHP terakhir saat ini adalah versi 5.2.0. PHP dapat didownload di http://id2.php.net/get/php-5.2.0.tar.bz2/from/a/mirror.

2. Instalasi

2.1. Install MySQL

Sebelum menginstall Apache dan PHP, yang harus diinstall terlebih dahulu adalah MySQL dan OpenSSL. Untuk menginstalasi kedua aplikasi ini di FreeBSD cukup mudah melalui ports.

$ cd /usr/ports/database/mysql51-server
$ sudo make install
$ sudo portupgrade -rR mysql51-server

Command terakhir adalah untuk mengupgrade versi MySQL ke versi terbaru.

Untuk mengaktifkan MySQL saat booting, buka file /etc/rc.conf dan tambahkan baris:

mysql_enable = “YES”

Copykan file konfigurasi MySQL:

$ sudo cp /usr/local/share/mysql/my-medium.cnf /var/db/mysql/my.cnf
$ sudo chgrp mysql /var/db/mysql/my.cnf

Kemudian jalankan command berikut untuk mengaktifkan daemon MySQL.

$ sudo /usr/local/etc/rc.d/mysql-server start

Bila berhasil, seharusnya Anda akan melihat baris berikut saat menjalankan command ps ax | grep mysql:

678 p0- I 0:00.01 /bin/sh /usr/local/bin/mysqld_safe –defaults-extra-file=/var/db/mysql/my.cnf –user=mysql –datadir=/var/db/mysql
701 p0- S 383:04.45 /usr/local/libexec/mysqld –defaults-extra-file=/var/db/mysql/my.cnf –basedir=/usr/local –datadir=/var/db/mysql

Selanjutnya buat password untuk MySQL root user:

$ sudo mysqladmin -u root password ‘password-root-mysql’

Coba masuk ke MySQL console dengan password root tersebut.

$ mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 603704 to server version: 5.0.22

Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the buffer.

mysql> \q
Bye

2.2. Install OpenSSL

Langkah selanjutnya adalah menginstalasi OpenSSL, cara menginstalasi OpenSSL dalam hal ini menggunakan ports juga.

$ cd /usr/ports/security/openssl
$ sudo make install clean

Buat direktori untuk menempatkan certificate SSL:

$ sudo mkdir -p /usr/local/openssl/{certs,private}

Kemudian generate private key 1024-bit:

$ cd /usr/local/openssl
$ sudo /usr/local/bin/openssl genrsa -out private/namadomain.com.key 1024

Ubah permission untuk direktori private menjadi:

$ sudo chown -R root:wheel private
$ sudo chmod -R 600 private
$ sudo chmod u+X private

Generate Certificate Signing Request (CSR) File:

$ /usr/local/bin/openssl req -new -key private/namadomain.com.key -out certs/namadomain.com.csr

Country Name (2 letter code) [GB]:
ID
State or Province Name (full name) [Some-State]:
Propinsi
Locality Name (eg, city) []:
Kota
Organization Name (eg, company) [Internet Widgits Pty Ltd]:
PT. Nama Usaha
Organizational Unit Name (eg, section) []:
Bidang Usaha Perusahaan
Common Name (eg, your name or your server’s hostname) []:
namadomain.com
Email Address []:
postmaster@namadomain.com

Please enter the following ‘extra’ attributes
to be sent with your certificate request
A challenge password []:
masukkanpassword
An optional company name []:

Kemudian buat Certificate Signed (CRT) file:

$ sudo /usr/local/bin/openssl x509 -req -days 365 -in certs/namadomain.com.csr -out certs/namadomain.com.crt -signkey private/namadomain.com.key

Certificate yang dibuat itu nantinya akan digunakan bila webserver support SSL.

2.3. Install Apache

Saya asumsikan, source Apache hasil download Anda disimpan di /home/users.

$ cd /home/users
$ tar -jxvf httpd-2.2.3.tar.bz2
$ cd httpd-2.2.3
$ ./configure \
--prefix=/usr/local/apache2 \
--enable-rewrite \
--enable-dav \
--enable-ssl \
--with-ssl=/usr/local \
--enable-vhost-alias \
--with-included-apr
$ make
$ sudo make install

Keterangan dari masing-masing opsi di atas adalah:

--prefix=[DIR]: Menginstall aplikasi ke target direktori yang ditentukan.
--enable-rewrite: Mengaktifkan rule based URL manipulation melalui module mod_rewrite.
--enable-dav: Mengaktifkan protocol WebDAV melalui module mod_dav. Dengan protocol WebDAV ini memungkinkan membuat, memindah, menyalin, dan menghapus resource pada sebuah web server.
--enable-ssl: Mengaktifkan module SSL/TLS.
--with-ssl=[DIR]: Di mana library SSL/TLS diinstall.
--enable-vhost-alias: Support dengan banyak virtual host.
--with-included-apr: Install apr. APR atau Apache Portable Runtime pada Apache 2.2.x versi merupakan source yang sudah menyatu dengan Apache Source.

2.4. Install PHP

Sebelum Anda menginstalasi PHP, saya sarankan untuk menginstall aplikasi-aplikasi via ports yang diperlukan (recommended) PHP saat instalasinya. Aplikasi-aplikasi tersebut adalah:

- mcrypt (/usr/ports/security/mcrypt) dan libmcrypt (/usr/ports/security/libmcrypt)
- db4 (/usr/ports/databases/db4) dan gdbm (/usr/ports/databases/gdbm)
- gd (/usr/ports/graphics/gd)
- libxml2 (/usr/ports/textproc/libxml2)

Saya asumsikan pula, source PHP yang Anda download disimpan di /home/users.

$ cd /home/users
$ tar -jxvf php-5.2.0.tar.bz2
$ cd php-5.2.0
$ ./configure \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-mysql=/usr/local \
--with-openssl=/usr/local \
--with-config-file-path=/usr/local/apache2/conf \
--with-png-dir=/usr/local/lib \
--with-gettext=/usr/local/lib \
--with-gd \
--with-zlib \
--with-xml \
--with-mcrypt=/usr/local/lib \
--enable-mbstring=all \
--disable-short-tags
$ make
$ make install

Keterangan dari masing-masing opsi di atas adalah:

–with-apxs2[=FILE]: Menyertakan shared Apache 2.0 Handler module.
–with-mysql[=DIR]: Menyertakan dukungan MySQL. DIR adalah di mana binary MySQL diinstall.
–with-openssl[=DIR]: Menyertakan dukungan OpenSSL.
–with-config-file-path=PATH: Di mana file php.ini akan diletakkan.
–with-png-dir[=DIR]: Menyertakan dukungan format file PNG.
–with-gettext[=DIR]: Menyertakan dukungan GNU gettext.
–with-gd[=DIR]: Menyertakan dukungan GD.
–with-zlib[=DIR]: Menyertakan dukungan zlib.
–with-libxml-dir[=DIR]: Menyertakan dukungan XML.
–with-mcrypt[=DIR]: Menyertakan dukungan mcrypt atau Multi-cipher cryptographic library.
–enable-mbstring: Mengaktifkan dukungan multibyte string.
–disable-short-tags: Nonaktifkan penggunaan tag pendek

Edit file /usr/local/apache2/conf/php.ini dan sesuaikan dengan kebutuhan Anda. Pada dasarnya default file konfigurasi ini sudah cukup baik.

Karena PHP diinstall sebagai module pada Apache, kita perlu mengubah kepemilikan direktori PHP yang hanya akan mengijinkan akses kepada user root dan www saja.

$ sudo chown -R root:www /usr/local/lib/php
$ sudo chmod -R g-w,o-rwx /usr/local/lib/php

Edit file /usr/local/apache2/conf/httpd.conf dan ubah baris-baris berikut menjadi:


User www
Group www


ServerAdmin
hostmaster@namadomain.com
ServerName www.namadomain.com:80

DirectoryIndex index.html index.php



TypesConfig conf/mime.types
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .php
AddHandler cgi-script .cgi

Aktifkan juga baris-baris berikut dengan menghilangkan tanda # di awal barisnya:

Include conf/extra/httpd-autoindex.conf
Include conf/extra/httpd-userdir.conf
Include conf/extra/httpd-vhosts.conf
Include conf/extra/httpd-dav.conf
Include conf/extra/httpd-default.conf
Include conf/extra/httpd-ssl.conf

Selanjutnya ubah permission direktori Apache:

$ cd /usr/local

Ubah kepemilikan direktori apache2 ke user root:wheel

$ sudo chown -R root:wheel apache2

Ubah permission pada direktori apache2. Karena direktori ini kepemilikannya oleh root:wheel dan supaya bisa diakses oleh group www, kita ijinkan group www ini membaca dan mengeksekusi file-file di bawahnya.

$ sudo chmod 755 apache2

Selanjutnya pada direktori apache2 ini hanya akan mengijinkan user root saja untuk dapat membaca dan menulisinya dengan mengubah permission menjadi:

$ sudo chmod -R 600 apache2/*

Hanya user root saja yang dapat mengakses seluruh direktori yang berada di bawah direktori apache2:

$ sudo chmod -R u+X apache2
$ cd apache2

Ubah kepemilikan direktori binary Apache ke user root:

$ sudo chmod -R u+x bin

Direktori cgi-bin juga berisi file-file binari. Hanya mengijinkan user root dan group www saja yang bisa mengaksesnya.

$ sudo chgrp -R www cgi-bin
$ sudo chmod -R u+x,g+x cgi-bin

Web server akan membaca direktori icons, maka ubah pula kepemilikannya agar bisa dibaca oleh group www.

$ sudo chgrp -R www icons
$ sudo chmod -R g+rX icons

Ubah juga permission direktori logs:

$ sudo chgrp -R www logs
$ sudo chmod g+wX logs

Terakhir ubah kepemilikan direktori htdocs agar bisa dibaca oleh publik. Direktori ini nanti merupakan tempat menyimpan file-file web yang akan ditampilkan pada browser. Akses penulisan ke direktori ini hanya dibatasi kepada user root saja.

$ sudo chgrp -R www htdocs
$ sudo chmod -R g+rX htdocs

Karena menginstall Apache dari source file. Kita harus membuat sendiri startup script-nya agar dapat dieksekusi oleh server pada saat booting. Start up script diletakkan di direktori /usr/local/etc/rc.d. Startup script dapat didownload di sini: Apache-2 FreeBSD Startup Script

Kemudian tambahkan dua baris berikut pada file /etc/rc.conf:

apache2_enable=”YES”
apache2_flags=”-DSSL”

Ubah permission file start up script menjadi:

$ sudo chmod 555 /usr/local/etc/rc.d/apache.sh

Jalankan file tersebut untuk mengaktifkan daemon httpd:

$ sudo /usr/local/etc/rc.d/apache.sh start

Periksa apakah daemon httpd sudah aktif dengan command ps ax:

$ ps ax | grep httpd

33549 ?? Ss 0:12.88 /usr/local/apache2/bin/httpd -DSSL
33550 ?? I 0:00.43 /usr/local/apache2/bin/httpd -DSSL
33551 ?? I 0:00.40 /usr/local/apache2/bin/httpd -DSSL
33552 ?? I 0:00.32 /usr/local/apache2/bin/httpd -DSSL

Bila output di console Anda sudah seperti di atas, selamat! Anda sudah berhasil menginstall web server pada server Anda.

3. Referensi

  1. http://www.bowe.id.au/michael/isp/webmail-server.htm#MYSQL
  2. http://httpd.apache.org/docs/2.2/
  3. http://www.google.co.id
  4. http://www.indofreebsd.or.id

Twitter Delicious Facebook Digg Stumbleupon Favorites More