I was playing around with XAMPP trying out the OrangeHR open source application.
I installed XAMPP on a machine with an IIS 7 pointing to HTTP port 80. So when I tried to start apache, I encounter a conflict.
Modifying the Apache included with XAMPP to use another port is very easy. Go to the installation directory.
It usually is c:\xampp\
In c:\xampp\apache\conf look for file httpd.conf
Look for a line that says: Listen 80 and change it for the port you need. In my case Listen 78
Save the file. And restart apache and TA DA!!!
If you are doing Silverlight development, one thing that can be cumbersome is keeping in sync
your development and production settings. Specially if you are using WCF services because you have
to make sure that your ServiceClient.config file has the right values.
What I usually do is this.
1. First set fixed ports for my application. See http://blogs.msdn.com/b/webdevelopertips/archive/2008/11/07/tip-21-did-you-know-how-to-set-a-fixed-port-for-the-developer-web-server.aspx
2. Modify my hosts file in C:\Windows\System32\drivers\etc adding an entry like:
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
# For example:
# 220.127.116.11 rhino.acme.com # source server
# 18.104.22.168 x.acme.com # x client host
# localhost name resolution is handled within DNS itself.
In this way all you have to change is your hosts file and you keep the same settings for development and for production