How to run IIS Web Server in Windows XP Home
To install IIS server please follow the steps.
You will need:
- Your Windows XP Home CD (or the I386 folder on your hard drive)
- A Windows 2000 Advanced Server CD (I imagine it’s possible to use a 2000 Professional
or XP Professional CD, but I can’t confirm this) Instructions
- Find and edit the file C:\WINDOWS\INF\SYSOC.INF.
- Near the top should be a section called [Components]
- Find a line like this:
iis=iis.dll,OcEntry,iis.inf,hide,7
- Change it to this:
iis=iis2.dll,OcEntry,iis2.inf,,7
- Get the iis.dl_ and iis.in_ from the win2k server cd and copy them to a directory
on your HDD.
Use EXPAND IIS.DL_ IIS2.DLL from a command prompt. Same for IIS2.INF
Place IIS2.INF in C:\WINDOWS\INF and IIS2.DLL in C:\WINDOWS\SYSTEM32\SETUP.
- Now go to Add/Remove Programs in the control panel and Add/Remove Windows Components.
You should have IIS options and I could even options to deselect components which
(apparently) you can’t do on XP Pro.
If you just need IIS web server I recommend the default settings to stop any confusion.
If you are confident enough to change these and want to then go right ahead.
- It will prompt you for files. Get them from XP Home CDs, Windows 2000 CDs, X:\WINNT\SYSTEM32\INETSRV,
X:\WINDOWS\I386, etc. (the CDs should have all you need)
- You can get to your IIS from Control Panel’s Administrative Tools.
Put an index.html file in the C:\Inetpub\wwwroot and add it to the list of Default
Documents under the Documents tab of your website’s properties.
Make sure you set up Inetupb’s wwwroot to be shared with other users. (See Note
2 for if this causes any problems)
Open up IIS from Administrative Tools and click the Directory Security tab, right
click your default web site and choose properties. Click Edit under “Anonymous access…”
and Edit the account for anonymous access. Click Browse, Advanced and Find Now.
Select the new user account IUSR_PCname. Click OK, OK, delete any characters in
the password field and click OK, OK and OK again.
- If you have followed these steps you should see your website when you type http://localhost/
in the address bar of your browser.
Note 1: As far as Microsoft are concerned, you need Windows XP Pro to do
IIS – full stop. There was a workaround for this posted on their MSDN knowledgebase
as Q310090 – but this has been removed You can notice that while it doesn’t exist,
both Q310089 and Q310091 (totally unrelated) do!
Note 2: Contrary to common belief, you can also access the Windows XP Pro
/ Win2k security type settings on XP Home. To do this, all you have to do is reboot
into safe mode and logon as the administrator. If you’re having any problems accessing
the site from other PCs on your network, try doing this and selecting the wwwroot
folder. Right click it and select Properties. There you’ll see our beloved Security
tab with all the users listed. What you need to do now is Add the user mentioned
above (IUSR_PCname) to the users with read access to this directory. After this
everything should function normally.
Note 3: Don’t make the mistake I did of spending hours trying to figure out
why you couldn’t see your site from it’s IP address. You will be able to see it
from your own internal IP address for your network (in my case 192.168.1.69). However,
if you try to use your WAN/Internet IP address, you will get a DNS error or “Cannot
find server” message. However, if you can get someone outside your LAN to try and
access it then it should work just fine.