Rabu, 25 November 2009

Membuat virtual hosting di debian

1. Login sebagi root
2. lakukan restart service apache2, dan pastikan web server berjalan dengan baik.
dengan menjalankan perintah berikut
n Perintah untuk restart service apache2
salnux:~# /etc/init.d/apache2 restart

Peritah pengecekan port service apache2
salnux:~# nmap localhost |grep http

Jika output dari hasil pengecekan service seperti di atas artinya paket web server
sudah berjalan dengan baik.
3. Lakukan pengecekan service DNS Server pada mechine server, denganmenjalankanperitnah berikut

Perintah restart service DNS server
salnux:~# /etc/init.d/bind9 restart

Konfigurasi Virtual Host.1. Kita buatkan direktori dari web yang terdaftar pada DNS Server. dan langkahnya
seperti berikut.
n masuk ke direktori /var/www
salnux:~# cd /var/www
n buat direktori baru dan isi dengan situs sederhana misalkan dengan file index.php
- pembuatan direktori dan file index.php untuk web mail.h2owangi.com
#salnux:~# cd /var/www
#salnux:/var/www# mkdir mail
#salnux:/var/www/mail# cat > index.php
echo "
SELAMAT DATANG DI WEB MAIL
H2OWANGI
";
?>
- pembuatan direktori dan file index.php untuk web moodle.h2owangi.com
salnux:/var/www# mkdir moodle
salnux:/var/www# cd moodle
salnux:/var/www/moodle# cat > index.php
echo "
Selamat Datang Di Situs pungging.edu
";
echo "
";
echo "
By salin
";
?>
- pembuatan direktori dan file index.php untuk web php.pungging.edu
salnux:/var/www# mkdir php
salnux:/var/www# cd php
salnux:/var/www/php# cat > index.php
Debian";
echo "
pungging
";
?>
- pembuatan direktori dan file index.php untuk web samba.pungging.edu
#salnux:~# cd /var/www/
#salnux:/var/www# mkdir samba
#salnux:/var/www# cd samba
#salnux:/var/www/samba# cat > index.php
echo "
";
echo "
File Sharing
";
echo "
";
echo "
Tempat untuk sharing file
.
";
?>
- pembuatan direktori dan file index.php untuk web pungging.edu
#salnux:~# cd /var/www/
#salnux:/var/www# mkdir salin
#salnux:/var/www# cd salin
#salnux:/var/www/salin# cat > index.php
echo "
";
echo "
Web Pribadi
";
echo "
";
echo "
pungging
";
echo "
";
echo "
Copy right@2007
";
?>
2. Membuat alias dari masing-masing server, yang kita letakan pada direktori/etc/apache2/site-enabled. ini dilakukan agar server di atas dapat diakses cukup
mengetikan nama domainnya misalkan http://salin.pungging.edu
n pembuatan alias untuk server mail
#salnux:~# cd /etc/apache2/sites-enabled/
#salnux:/etc/apache2/sites-enabled# cat > mail

DocumentRoot /var/www/mail
ServerName mail.pungging.edu
ErrorLog /var/log/apache2/error.log

n pembuatan alias untuk server mail
#salnux:~# cd /etc/apache2/sites-enabled/
#salnux:/etc/apache2/sites-enabled# cat > mail

DocumentRoot /var/www/mail
ServerName mail.pungging.edu
ErrorLog /var/log/apache2/error.log

3. Lakuan restart service apache2, dengan menjalankan perintah
salnux:~# /etc/init.d/apache2 restart

Senin, 25 Mei 2009

Pemerograman Web dengan PHP dan MYSQL

1. Saya asumsikan Anda telah mengenal dengan cukup baik komputer Anda, dan
juga bisa mengoperasikannya. Jadi Anda seharusnya sudah mengerti
perbedaan file dan direktori, bagaimana menyimpan file atau document,
bagaimana meng-copy file, dan seterusnya.
2. Saya asumsikan Anda telah mengerti bagaimana membuka dan menggunakan
salah satu atau salah semua dari editor seperti Notepad, EditPlus, Crimson
Editor, Dreamweaver, atau yang lainnya. Saya asumsikan juga, Anda telah
mengerti bagaimana membuat, mengedit, dan menyimpan suatu file dengan
editor tersebut.
3. Saya asumsikan bahwa Apache, PHP, dan MySQL di komputer yang Anda
pakai sudah berjalan sebagaimana mestinya.
4. Saya asumsikan Anda telah mengerti bagaimana cara menggunakan Web
Browser (IE, Mozilla, Opera, dsb)
5. Saya asumsikan Anda telah mengenal dan mengerti dengan cukup baik
tentang tag-tag HTML dan juga bagaimana menggunakannya. Anda tentu
sudah mengambil matakuliah Pemrograman Web 1 atau Internet kan ?
6. Saya asumsikan bahwa penglihatan Anda masih normal sehingga bisa
membedakan antara :
ƒ Tulisan nama, Nama dan NAMA
ƒ Koma (,), titik-koma (;) dan titik-dua (:)
ƒ Kutip-tunggal (‘) dan kutip-ganda (“)
ƒ Tulisan namamhs, nama_mhs dan nama mhs

Untuk mempelajari tutorial lengkapnya silahkan ambil disini

Pemerograman PHP MYSQL

PHP adalah bahasa pemorgraman yang memungkinkan para web developer untuk
membuat aplikasi web yang dinamis dengan cepat. PHP merupakan singkatan
dari “PHP: Hypertext Preprocessor”. PHP ditulis dan diperkenalkan pertama kali
sekitar tahun 1994 oleh Rasmus Lerdorf melalui situsnya untuk mengetahui siapa
saja yang telah mengakses ringkasan online-nya.
PHP merupakan salah satu bahasa script yang terbilang baru dan tersedia secara
bebas dan masih memungkinkan untuk dikembangkan lebih lanjut. PHP dapat
diintegrasikan (embedded) ke dalam web server, atau dapat berperan sebagai
program CGI yang terpisah.
Karakteristik yang paling unggul dan paling kuat dalam PHP adalah lapisan
integrasi database (database integration layer). Database yang didukung PHP
adalah: Oracle, Adabas-D, Sybase, FilePro, mSQL, Velocis, MySQL, Informix,
Solid, dBase, ODBC, Unix dbm, dan PostgreSQL.
Tutorial Lengkap Silahkan DISINI

Minggu, 05 April 2009

ROUTING dan NAT PADA MIKROTIK

Pendahuluan

Routing memegang peranan penting dalam suatu network terutama dalam mengatur jalur data dari satu komputer ke komputer lain. Komputer yang bertugas mengatur routing di sebut Router.

Materi pada modul ini berisi instalasi dan penggunaan Sistem Operasi MIKROTIK. Disini sengaja di pilih Sistem Operasi MIKROTIK karena di pandang mudah dalam pengoperasiannya dan kebutuhan hardware yang relatif rendah.

Kebutuhan hardware minimal :
Pentium II
RAM 64 Mb
Harddisk IDE 400 Mb

Untuk saat ini MIKROTIK hanya bisa di install di harddisk type IDE, sedang kan harddisk dengan type SCSI dan SATA belum bisa digunakan.

MIKROTIK mempunyai banyak service atau tool sehingga bisa dijadikan DHCP server, PROXY server, RADIUS server, DNS server, VPN server selain sebagai router.

Pada modul ini, akan di bahas MIKROTIK sebagai ROUTER dan sebagai BRIDGE. Disamping itu juga di bahas setting MIKROTIK sebagai pembagi bandwidth.

Download Tutorial Lengkap disini

Senin, 23 Maret 2009

ROUTING & NAT CONFIGURATION ON WINDOWS SERVER 2003

So what is NAT? Network Address Translation, or NAT, is a technology that uses a router to share an Internet connection among the PCs on your private network, even though those PCs do not have a valid public IP address. There are both hardware and software NAT routers. In this particular situation, we will be configuring a Windows Server 2003 machine to act as a software based NAT router.

As you probably know, a router’s primary purpose is to regulate traffic flow between two networks, and a NAT router is no exception. The server that you will use as a NAT router must have two network interface cards (NICs) installed. One of these NICs will connect to the Internet and the other will connect to the private network. PCs on the private network will then send HTTP requests to the NAT server via the server’s private network connection. The server will then retransmit the request over the Internet on behalf of the client. When the requested Web site responds, the response is sent to the NAT server, which in turn forwards it to the client who made the original request. The client never communicates across the Internet directly.
IP Addressing Considerations

As I explained in the section above, a NAT router acts as a gateway between your private network and the Internet. The server that is acting as the NAT router must have two NICs. One of the NICs is connected to the Internet. This NIC must be assigned the IP address that was given to you by your Internet Service Provider.

The other NIC connects to your private network. As I mentioned, NAT does not expect you to have valid IP addresses on your private network. Instead, you are basically free to pick an address range at random. There is the off chance that the range that you pick might already be in use by a popular Web site, but I have only seen someone pick an address range that caused problems once. If you want to use an address range that is guaranteed not to interfere with anything on the Internet, you can use the 192.168.x.x address range.

After you pick an address range, I recommend setting up a DHCP server so that it will assign addresses from your chosen address range (the DHCP term for an address range is a scope) to the workstations on your network. You must however statically assign an address to the NIC on the NAT server that connects to your private network. For example, if you chose to use the address range 192.168.1.0 to 192.168.1.99, then you might consider assigning the address 192.168.1.0 to the NAT server. You could then use the 192.168.1.1 to 192.168.1.99 address block as your DHCP scope.

While you are configuring your DHCP server, there are a couple of other considerations that you need to make. As you may know, DHCP allows you to optionally assign a default gateway and a DNS server to workstations along with an IP address. When doing so, you must set the default gateway address to match the private network address that you assigned to your NAT server.

You have a few different options when choosing which DNS server address the DHCP server should assign to the workstations on your network. If you don’t have your own DNS server, then the best thing that you can do is to just use the IP address of your Internet service provider’s DNS server. If your network is running Active Directory though, then you already have a DNS server and you should use its address. It doesn’t matter if your DNS server is authoritative for your domain or not. Simply point the workstations to it. You can then set up a forwarder on the DNS Server so that any unresolved queries get forwarded to your ISP’s DNS server.

The advantage to pointing clients to your own DNS server rather than to your ISP’s DNS server is that doing so will provide your users with better performance. Your DNS server is local, so queries reach the server more quickly than they would reach a remote server. Furthermore, your DNS server has a built in cache so that popular Web sites do not have to be resolved each time a user visits them.
FULL TUTORIAL