Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Sir/Madam
Initially I had installed MySql server on my pc beacuase I was working on php at that time. Now I am working on ASP.NET. I have installed IIS 6 server/VS2010/sql server2005. But when I write localhost on my browser, it opens the default MySql server pages. The path is "C:\xampplite\htdocs", which I want to be "C:\inetpub\wwwroot" to run asp.net server. How could I change that? N can I run asp.net pages on lan like php pages? Please help me.
Thnaks.
Posted

Change the default port for PHP/MySQL,in http.conf,search for text 80, replace 80 to whichever port you want apache to listen(for eg 8081),restart your server now you can access your php and Msql by port localhost:8081
 
Share this answer
 
As answered by Syed, you can change your port no. for Apache as described.

If you don't want to do so, then you can change the port no. for IIS to run ASP.net.
The Problem you are facing is just because both IIS and Apache uses the default port 80. which causes conflict to run which server.

Hence you have to change the port no. for any one.

check this for changing the port in II6:

Configuring IIS 6[^]

hope it helps :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900