How to run iis and apache same machine

How to run both Apache and IIS web server simultaneously?
Download PHP from http://www.php.net/downloads.php. I get the zip package because I think it is just as easy, and gives me control over setup and install. Once installed the apache sever will run automaticllay in tray. It should definately give errors that port 80 is already occupied.
This is because IIS is utilizing port 80. To overcome this problem shut down iis before installation of apache or leave it like it is. However, you have to decide whether you want to use port 80 for iis or apache.

Presuming working on windows(xp/ 2000, etc)  To change apache’s default port.

Here are the qick and easy steps.

Step 1: start ->control panel->Administrative tools->Services->stop APache2

Step 2:  Open the Apache config File C:\Apache2\conf\httpd.conf or go through

Step 3: Start -> All Programs -> ApachePhpMysql(if u have installed ApachePhpMysql

other wise look for other path but the file name will remain same)-> Config -> Apache (notepad file)

look for Listen 127.0.0.1:80 .In my Computer its on line no. 10

change 80 to 8080(preffered) or some othe no.

save the file and close it.

Step 4:  start ->control panel->Administrative tools->Services->start APache2

Step 5: open Web browser and type http://localhost:8080/

if the screen shows “Apache is working” (in bold letters), you r done

Step 6: Next you can run asp.net through http://localhost/

Yeppi !!! we are done., now both of your servers can run together.

 

Share this nice post: