How do I make a virtual webhost on my own windows xp computer?

I want to test out websites that I created on my own virtual webhost, offline, because there are some features that only work when the site is being hosted….how can I do that?
I found the Apache but I am stuck…I cannot edit the HOSTS file at all! I try adding the additional domain names but the file WILL NOT save! I try saving it as a text, then removing the extension and using that to overwrite the HOSTS file, and it won’t work! It keeps saying that the file is in use…Is there anyway I can edit the HOSTS file?!

Thanks in advance!
Another thing: I checked the HOSTS file properties, and it is not set to read-only at all! The error that I get when I try to save the HOSTS file is the following:

Cannot create the C:\WINDOWS\system32\drivers\etc\hosts file"
"Make sure that the path and filename are correct."

install a webserver like Apache or use windows built in IIS. For database you have to install mysql. Also u need to install php interpreter to make php scripts work.

2 Responses to “How do I make a virtual webhost on my own windows xp computer?”

  1. install a webserver like Apache or use windows built in IIS. For database you have to install mysql. Also u need to install php interpreter to make php scripts work.
    References :

  2. you can use IIS(internet information service) to set up a virtual webhost if it has been installed on your WinXP computer.

    See the help documents to install and use it.
    References :

Leave a Reply