The project that I am currently working on has to be coded in ASP for a Windows Server. Personally, I prefer PHP but luckily there isn’t anything too tricky about this site. I spent the last 20 minutes searching the internet for an easy way to get my test website up and running locally on my Win7 Machine. I didn’t see a good quick tutorial out there, so I thought I would document this in the hopes that people will save time in the future.
Step 1: Install/Enable IIS and ASP on your Computer
Whether you’re on a Win XP, Win7 or Windows Server – you need get Microsoft’s IIS running. This is pretty easy. Just go to Start->Control Panel->Programs and Features. Then click Turn Windows Features On/Off. Check Internet Information Services and then make sure to enable ASP, .NET and whatever other scripts that you want to work on your computer:
Click OK and go grab a drink while all of this stuff configures.
Step 2: Copy your Web Files to inetPub
Go over to C:\inetpub\wwwroot and create a Folder for your website and copy over all of your web files (ASP, HTML, images, etc).
Step 3: Create a new Website in IIS
- Open IIS by going to Start->Control Panel->Administrative Tools->IIS Manager
- Right Click in the left sidebar and select Add Web Site
- Fill out the Website Form:
- Name your Site
- Click the … Button under Content Directory and select the folder you copied into inetpub
- Change the Port if necessary
- Click OK to start up the site
Step 4 – Check your Local ASP site
- For my site, I used port 120 so if you type: http://localhost:120/ into your web browser your site should popup
- If this doesn’t work, you may need to go into IIS and set your default document (I had to do this since index.asp is not in there by default)
Comments are closed.