Kita mau agar di komputer kita menjalan dua web service sekaligus menggunakan IIS dan Apache, biasanya default kedua web service ini menggunakan port 80 sehingga kalau dijalankan bersamaan pasti bentrok, jadi salah satunya harus mengalah dalam arti servicesnya distop. Cara ini agak report, nah supaya dua-duanya bisa jalan sekaligus portnya harus dibedakan, misalnya untuk IIS tetap 80, apache (dalam artikel ini penulis menggunakan XAMPP 2.2) kita ganti jadi port 81. Caranya bagaimana? Berikut langkah-langkah singkatnya.

1. Cari file httpd.conf di folder conf tempat xampp diinstall, dalam contoh ini diinstall di C:\Program Files\xampp\apache\conf\httpd.conf
2. Buka dengan notepad atau editor yang lain.
3. Cari code Listen 80 (pake Ctrl+F), ubah Listen 80 jadi Listen 81
……..
# Listen: Allows you to bind Apache to specific IP addresses and/or# ports, instead of the default. See also the # directive.## Change this to Listen on specific IP addresses as shown below to# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)##Listen 12.34.56.78:80Listen 81##Dynamic Shared Object (DSO) Support## To be able to use the functionality of a module which was built as a DSO you# have to place corresponding `LoadModule’ lines at this location so the# directives contained in it are actually available _before_ they are used.# Statically compiled modules (those listed by `httpd -l’) do not need# to be loaded here.## Example:# LoadModule foo_module modules/mod_foo.so……..
4. Ubah ServerName localhost:80 jadi ServerName localhost:81
…………
# ServerName gives the name and port that the server uses to identify itself.# This can often be determined automatically, but we recommend you specify# it explicitly to prevent problems during startup.## If your host doesn’t have a registered DNS name, enter its IP address here.#ServerName localhost:81## DocumentRoot: The directory out of which you will serve your# documents. By default, all requests are taken from this directory, but# symbolic links and aliases may be used to point to other locations.#………
5. Restart apache dari XAMPP Control Panel Application, dari Start->All Programs -> apachefriends->xampp->CONTROL XAMPP SERVER PANEL
6. Masuk ke web browser ketikkan http://localhost:81 di address bar, kalau bisa berarti setingannya sudah benar. Sekarang di komputer anda sudah bisa menggunakan IIS dan apache bersamaan.
Semoga bermanfaat, ini dari coba-coba kalau ada cara lain atau settingannya ada yang kurang bisa dishare aja. Trims.

0 Comments:

Post a Comment