SEARCH

How-To Geek

How to Install IIS on Windows 7 or Vista

If you are a developer using ASP.NET, one of the first things you’ll want to install on Windows 7 or Vista is IIS (internet information server). Keep in mind that your version of Windows may not come with IIS. I’m using Windows 7 Ultimate edition.

First, go to Control Panel, and then click on Programs. You’ll see a link for “Turn Windows features on or off”

If you expand the Internet Information Services tree node, you can see that there are a lot of options beneath it. You will probably want to explore these options, because even if you click on IIS, some of the necessary options for doing development aren’t checked.

Once you’ve gone ahead and checked the items you want, and clicked OK, you’ll see this dialog for a while….

Now when you navigate in your browser to localhost, you’ll see the new default page… slick!

 

Lowell Heddings, better known online as the How-To Geek, spends all his free time bringing you fresh geekery on a daily basis. You can follow him on if you'd like.

  • Published 12/26/06

Comments (39)

  1. Mike

    Thanks for the Vista IIS/localhost setup info. Finding Microsoft setup info isn’t always quick. You sure made this easy. Thanks again.

  2. Susan

    Thanks alot! This really helped!

  3. Bert

    Thanks,
    But how about security.
    I use clasic ASP with connection to a database (access)
    My website won’t start because of internal error (error 500)
    How do I setup security so that local website will start.
    I looks different than on Windows XP.

  4. Kaushal

    Hye,

    In IIS 7 is there the faclity to have local site acess with “www.mysite.com” or i will have to use it like “http://localhost/mysite”

    Thanx
    Kaushal

  5. Jeff

    Hi. I am new to Vista and new to ASP.net. I have recently acquired Vista Ultimate and VS 2005, so I am learning both.

    Two issues/questions:

    1) In World Wide Web Services – Application Development Features, I can only get the ASP and ISAPI Extensions and ISAPI Filters check boxes to run correctly – all the others, including .NET Extensiblity and ASP.NET just error out when I hit the OK button after Vista does its configuration thing. This is very confusing to me, as I have created an ASP.NET “Hello World” application using C# and its runs just fine, albeit the URL is not http://localhost/foo, but http://localhost:49537/Default.aspx. What am I misunderstanding here?

    2) I still do a lot of classic ASP development – much more than ASP.NET, in fact. However, when I use Visual Interdev 6.0 to create a site on my local host and tell the application which server to use (“Foo”, for argument’s sake), I get the following error:

    There is no sever on Port 80 at ‘foo’ (Errorcode = 8004005)

    Your help would be much appreciated; I am considering a rebuild using XP Pro and just biding my time at this point. Please help! :-)

  6. Dae

    What if you don’t have all the options under “Turn Windows features on or off”?

    I have Windows Vista Ultimate, but I seem to be missing a few options…like Games, IIS, and more.

    Please advise.

  7. JayCat

    I am encountering the same problem as Bert. i can view normal asp pages but once the page needs to extract info from the database, a internal error shows up. what is the solution for this problem.

  8. JoseNetto

    I have this problem too. (I am encountering the same problem as Bert. i can view normal asp pages but once the page needs to extract info from the database, a internal error shows up). what is the solution for this problem.

  9. paul

    I`ve followed your installation but when i type http://localhost/ it just shows a blank page and no errors. When i try and view my site on local server i can all text but the images are crossed out as if link is incorrect (happens on all pages). It seems as if VISTA is blocking all images…please can someone help, been 5 weeks now :(

    Thanks

  10. praveen

    hi
    I have followed the same procedure as told by you to install IIS on windows vista but my problem is when i type the url http://localhost am getting http server 404.4 error what is this what mistake i have done can you please help me in this regard
    thank you

  11. Bill Staples

    For all those out there struggling with Classic ASP and Access, the fix to your problem is most likely here: http://blogs.iis.net/bills/archive/2006/10/18/loadUserProfile-and-IIS7-_2D00_-understanding-temporary-directory-failures.aspx If that doesn’t fix it, check out the ASP forum on IIS.net here: http://forums.iis.net/1044/ShowForum.aspx

  12. Kay

    I have followed the same procedure as told by you to install IIS 7.0 on windows vista but my problem is when i type the url http://localhost am getting http 500.0 error can you please help me in this

    Regard

    thank you

  13. Peter

    Kay, this has to do with your security on the directory you are pointing to. Cheap and nasty is to add group names INTERACTIVE and SERVICE both with default privelleges.

  14. Peter

    Off the top of my head, for those with the problem only when they try to hit the database, go to IIS Authentication, and tell it not to be for a specific user (appilcation pool option) under the anonymous option.

  15. Peter

    For those with the problem only when they try to hit the database, go to IIS Authentication, and tell it not to be for a specific user (appilcation pool option) under the anonymous option.

  16. mahesh

    hi,

    I have followed the procedure of installing IIS as said. But after the isntallation there is no IIS icon in Administrative tools. when i try with localhost in IE, I am getting 404 error.

    I am using WindowsVista Home Basic Edition in my laptop.

    Any help is appreciated.

    Thanx.

  17. Bill Staples

    Mahesh – only a very limited set of features are on home basic. You won’t be able to use it as a web server. See more here: http://www.iis.net/articles/view.aspx/IIS7/Deploy-an-IIS7-Server/Installing-IIS7/IIS7-Features-and-Windows-Vista-Editions?Page=2

  18. Tony

    Ok, im just about upgrading from xp to ultimate

    just wondering does mysql/php/phpmyadmin work fine along with IIS

    thanks

  19. Gabriel.

    I was trying to install Active Directory and it’s administrative options for Echange.

    I installed the IIS 7.0, but when I try to run the Exchange Admin tools, it tells me that IIS is not running or it’s not installed.

    i already installed IIS7.0 and verified the http://localhost

    what gives. any ideas.

    Gabriel.

  20. Alex Ames

    I have given up after 3 weeks trying to get IIS7 installed and working with PHP on Vista. It NEVER gave me access to localhost. I learned a great deal, but it ALWAYS led to more problems that needed a deeper (and deeper and deeper, keep shoveling) knowledge of Vista/IIS7/etc. than I ever wanted to know.

    In every bit of web research and trying all the major online advice I could find, I never found a single set of instructions or group of collective wisdom instructions that was complete or correct, and certainly none got me going with local development using PHP and localhost on Vista.

    I ended up using WOS Portable, which works with the exception of the annoying Vista notice that it can’t find localhost offline, and tries to go online. I shut that Vista notice off (each and every time) and the web site I’m trying to develop shows up.

    I regret my sorry time trying to install and test IIS7, and in getting Vista in place of XP.

  21. I wms

    PHP works, at least I got the php test page in both Firefox and Explorer. [Toshiba laptop Vista Home Premium]
    From: Alex Ames on June 22, 2007 8:18 am
    … knowledge of Vista/IIS7/etc. than I ever wanted to know…
    Alex:
    I agreed” BUT this link worked for me, if you want to try again. I just followed the main article.

    EXCEPT- I had to create the test file out side of “wwwroot” It said I didn’t have permission – and then paste the file into “wwwroot”. Note: I didn’t install mysql yet. Once I got php working, I typed this for you and TURNED Vista OFF.

    Also in the test.php file only put the following line:

    http://blondr.blogspot.com/2006/11/set-up-iis-7-w-mysql-and-php-5.html

    I wms

  22. Sam

    Thanks a lot, it really helped me a lot.

  23. faress

    tankyou man very nice

  24. Usman

    hi, i have installed windows vista enterprise but when i go to “Turn windows features on and Off” in control panel under programs, i cant see my IIS Services listed there. Can any body help me to know why this features (and some others like games) are missing from this dialog. Thanks,

  25. ivorvhanTg

    thanks for your help.. this is great forums for me.. tnx a lot.

    ivorvhan

  26. Navneet

    i have window vista home basic in my sony vaio N37 model
    i wanna configure IIS 7.0 but when i configured and i type http://localhost/ in the browser
    i am getting error
    server error in application -”default website”
    Http 404 error

    please help me
    any help is appreciated

  27. michael poole

    new to vista,new to computers?hey man you saved my sanity,error 404 is a nightmare many thanks

    the baron 15/7/07

  28. Parveez

    Thanks,

  29. del

    Hi,

    I am using Windows Vista Home Premium running Visual Studio 2005, SDK, and IIS 7.0. I configured IIS to make it aware of ASP.NET. IIS displays htm files with no problems. Yet, I cannot get it to display an ASP file. I am out of ideas. Can you help me?
    Thanks,
    Del

  30. Navneet Tyagi

    Hii
    All
    In the month of july i submit a comment that how to install IIS 7.0 on Vista home basic edition
    now i sort out the problem..
    In Vista home basic addition you cant install any web server
    for IIS you have to switch on Vista Premium or Business or Ultimate edition

    Thanking you

  31. lovely

    hi
    I have followed the same procedure as told by you to install IIS on windows vista but my problem is when i type the url http://localhost am getting http server 404.4 error what is this what mistake i have done can you please help me in this regard. and also in application development feature i can’t see ASP checkbox.only one checkbox i can see is .net extensibility.

    can you please reply soon

  32. Vishwas

    My IIS is working fine but when I run services.ext and see the services running , I dont see IIS there.
    http://localhost is running fine for me , I am able to see default page.

    Thanks

  33. lovely

    hi vishwas
    I still can’t see asp checkbox in application development features.only one feature is there that is .net extensibility.what should i do now ?
    if anyone knows the solution please reply me

  34. Del

    Hi,

    I did what you did. My problem is that when I test an asp or aspx file in my IE browser address window, the program opens up in Visual Studio. It is a VB script program; I am running Vista Ultimate. My SQL server is running fine.

    Any Ideas?
    del

  35. oscar

    great!!! Thank you

  36. gary schafer

    Thanks for your help, it worked as advertisied.

  37. niza

    Hi, I also got problem with my IIS in window vista..when i type my .asp in localhost they will open the file to my dev editor (Dreawweaver) instead of go direct to the link in browser..someone please help me..

  38. francis

    Hi, I also get the same problem as niza. Help please…

  39. The Geek

    ———————-NOTE————————–

    I am closing the comments on this article because of the large amount of support questions.

    You are welcome to leave any computer help questions on the Forum.

    http://www.howtogeek.com/forum/

    ———————-NOTE————————–

Enter Your Email Here to Get Access for Free:

Go check your email!