Run both the XAMP and IIS severs

This article is actual problem that i felt... i started learning ASP.net for that i must download and installed IIS(internet information services) i did it and IIS run perfectly. few days later i wanted to run XAMPP but the local host did not work i tried several times but i fail. then i google my problem and realize that the problem is with the port. both the IIS and Apache severs are using the same port (80). so this is the way to change the port number

we have 2 ways of doing this 
Option 1

  • First, You need to know the folder where XAMPP is installed (root folder). The default folder is c:\xampp\. From the root folder navigate to " apache\conf " folder and find the file "httpd.conf".
  • Before editing the file, make a backup of it with a name "httpd.conf.bak" so that if something goes wrong you can replace this file.
  • Now open the file "httpd.conf" with an editor like notepad. You need to make two edits to the file.
The first one:
  Find out the below lines in the file.

  #Listen 0.0.0.0:80
  #Listen [::]:80
  Listen 80

  change it as shown below:

  #Listen 0.0.0.0:80
  #Listen [::]:80
  Listen 8080
Then edit: 
 Find the below line:

  ServerName localhost:80

  change it to:

  ServerName localhost:8080

Option 2

How to configure IIS.

i already change port to 1234 you can give a port number as you wish but make sure its not the XAMP port number 

its easy 
step 1: select ur site location
step 2: select Bindings 
step 3: click on port 
step 4: then select edit 
step 5: now change the Port 
your done... :)









thank you 

Comments