Thursday 18 February 2010

Setting up Apache and IIS on the same machine

Just a quick note to myself more than anything so I remember in the future.

I am currently trying to get both IIS and Apache running on my web server. The reason for this is because I want to move my SVN server from my home server to my remote server. This will mean that my SVN server can have it’s own static IP and run with apache on port 80 as a http server.

The problem was that by default IIS binds to all the IP addresses available to the server so that Apache was not able to bind to any.

I found this blog post very helpful.

To summarise:

  • Make sure httpcfg is installed – you might need to download the support tools
  • type the following command for each IP address that you want IIS to listen on:
    httpcfg set iplisten –i XXX.XXX.XXX.XXX
  • confirm the IP list you have created with:
    httpcfg query iplisten
  • restart http service:
    net stop http /y
    net start w3svc

That’s it. I now have Apache and IIS running on my server, both on port 80 but on different IPs. Now all I have to do is link Apache up to SVN and copy my dump of my local repository across.

1 comment:

  1. Hi Giles

    Have you considered running Buildix? It's a VMWare virtual machine that gives you a complete svn/trac/cruise control/mingle instance out-of-the-box.

    Also, for plain-ol'-svn, I've been using VisualSVN - which runs a svn server on my windows box. I've found this useful for testing on Marmalade.

    ReplyDelete