Wednesday, February 15, 2012

How to run Apache and IIS on same machine at a time?

By default, IIS (Internet Information Server) and Apache ( A Patch Server) both runs in Port number 80.

If you want to run both IIS and Apache at the same time, you just give different port number to one another.
Just like IIS can run in Port 80.  You can give Apache server port number as 81 (Maximum limit for a port number range into 32768). Say for example you can give the port number as 22222 which is under the maximum limit of port number.








 For this change you need to do a small favor in Apache configuration file, i.e. httpd.conf file.  Say for example the configuration file in C:\xampp\apache\conf\httpd.conf

Step: #1
In the configuration file, search with the word "Listen 80" replace it with "Listen 22222"

Step: #2
In the configuration file, search with the word "ServerName localhost:80" replace it with "ServerName localhost:22222"

Step: #3
Stop the Apache server and Start Again or Restart the Apache server.

Step: #4
Check you site with localhost:22222/drupal

Step: #5
Finish

No comments:

Post a Comment

Followers