在Windows 7中设置IIS7.5以运行经典ASP网站
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is to test my current websites using Internet Explorer (IE) 9. (Of which all my sites run perfectly under IE9)
大家好! 我最近刚刚开始在Windows 7中使用Microsoft的IIS 7.5,因为我刚刚下载并安装了Windows 7的90天试用版。(请允许Microsoft允许使用90天)下载和测试Windows 7的主要原因是要测试我的最新版本。使用Internet Explorer(IE)9的网站。(其中我的所有网站都在IE9下完美运行)
Now, I run
现在,我跑步
ASP Classic Applications mostly, about 99% of my site scripts are ASP Classic, with just a touch of VB.NET (ASP.NET). So, to test my sites within Windows 7 while I am there, I installed IIS7.5 and setup Classic ASP to run on the windows 7 system, and here you go, the instructions on just how it is done.
ASP Classic应用程序大多数情况下,我的站点脚本中约有99%是ASP Classic,仅带有一点VB.NET(ASP.NET)。 因此,要在Windows 7中测试我的站点,我安装了IIS7.5并设置了Classic ASP以便在Windows 7系统上运行,然后您就可以了解如何完成操作。
Note: Total time to setup is about 3-5 minutes, depending on the speed of your system, and you will need the windows 7 CD.注意 :根据系统的速度,安装的总时间约为3-5分钟,您将需要Windows 7 CD。1.安装IIS7.5 (1. Installing IIS7.5)
Open Control Panel
打开控制面板
Click [Programs]
点击[程序]
Choose [
选择[
Turn Windows features on or off]
开启或关闭Windows功能
Click on the [
点击[
+] and the [] box beside [
+ ]和[]旁边的[]框
Internet Information Services]
[互联网信息服务 ]
(When you click the box it will turn blue, and the [
(当您单击该框时,它将变成蓝色,并且[
World Wide Web Services] & [
万维网服务 ]&[
IIS Management Console] will become active as well. Do not uncheck these!)
IIS管理控制台 ]也将变为活动状态。 不要取消选中这些!)
Now, put a check beside the following item(s)
现在,在以下项目旁边打勾
[
[
IIS Metabase and IIS 6 configuration compatibility]
IIS元数据库和IIS 6配置兼容性 ]
Click the [
点击 [
+] beside [
[]旁边的+
World Wide Web Services]
[万维网服务 ]
Then the [
然后[
+] beside [
[]旁边的+
Application Development Features]
[应用程序开发功能 ]
Put a check beside the following area's
勾选以下区域的旁边
>>
>>
ASP
ASP
>>
>>
ASP.NET
ASP.NET
(Once you put checks beside these, other features will become active as well, leave them checked and continue)
(一旦您在这些旁边进行了检查,其他功能也将变为活动状态,请选中它们并继续)
Now click [OK]
现在单击[确定]
(This process will take a few minutes, so be patient)
(此过程将需要几分钟,因此请耐心等待)
(When you are finished checking everything, it should look like this)
(检查完所有内容后,它应该看起来像这样)
2. IIS安装程序 (2. IIS Setup)
Now that we have this done, we will need to go into IIS and do a few things in there next.
现在我们已经完成了这一步,我们将需要进入IIS,然后在其中进行一些操作。
So, let’s open IIS
因此,让我们打开IIS
Click on the [Start] button and type in [IIS]
点击[开始]按钮并输入[IIS]
Choose [
选择[
Internet Information Services (IIS) Manager]
Internet信息服务(IIS)管理器 ]
(You can also setup your menu to show Administrative Tools, then drag the IIS Manager from Administrative tools into your Menu Bar, this is the best way to get to it and other applications quickly, since the Taskbar is no longer split within Win7)
(您也可以设置菜单以显示“管理工具”,然后将IIS管理器从“管理工具”拖到菜单栏,这是快速访问它和其他应用程序的最佳方法,因为任务栏不再在Win7中拆分)
Within IIS, click on the ellipse arrow beside the
在IIS中,点击旁边的椭圆箭头
Server Name in the Left Panel
左侧面板中的服务器名称
Click until you get to [
单击直到您转到[
Default Web Site]
默认网站 ]
Click on [
点击 [
Default Web Site]
默认网站 ]
Over in the Center Section, Double click on [
在中心部分中,双击[
ASP]
ASP ]
Behavior] section
行为 ]部分
[
[
Enable Parent Paths] change this to: [
启用父路径 ]更改为:[
True]
真实 ]
(This makes it so that we can use ../file.asp within our INCLUDE FILES Without this set to true, you will receive an error)
(这样一来,我们就可以在INCLUDE FILES中使用../file.asp,如果不将此设置为true,则会收到错误消息)
Then under [
然后在[
Debugging Properties]
调试属性 ]
Set [
设置[
Send Error To Browser] to: [
发送错误给浏览器 ]到:[
True]
真实 ]
(This will allow for the errors to be viewable to your Browser)
(这将使您的浏览器可以看到错误)
Save])
保存 ])
Now,
现在,
Right Click on the [
右键点击[
Default Web Site]
默认网站 ]
Then [
然后 [
Manage Web Site]
管理网站 ]
Then [
然后 [
Advanced Settings]
高级设置 ]
(or) from the [
(或)从[
Actions] panel on the Right, under [
右侧[[ 动作 ]面板下
Manage Web Site] click on [
管理网站 ]单击[
Advanced Settings...]
高级设置... ]
(Menu Options)
(菜单选项)
When the Dialog appears
当对话框出现时
Under [
在[
General]
一般 ]
Click on the [
点击[
Physical path] (you will then see an ellipse button, Click on it, and choose the folder location where you have your site located.)
物理路径 ](然后您将看到一个椭圆形按钮,单击它,然后选择站点所在的文件夹位置。)
Mine are all kept in: (G:\InetPub\wwwroot\) and within Sub Folders from there, for each of my sites.
对于我的每个站点,我的所有位置都保存在(G:\ InetPub \ wwwroot \)和子文件夹中。
(Make it a practice to back up your sites on a regular basis, sometimes I forget, and kick myself for it. So create a script with RoboCopy and click it every time that you make a workable/keep worthy change to your page(s))
(作为一种做法,定期备份您的网站,有时我会忘记,然后踢自己。为此,请使用RoboCopy创建脚本,并在每次对页面进行可行/有价值的更改时都单击它。 ))
(Looks like this)
(看起来像这样)
Now, I have my IP set to an In-house Static IP of: 192.168.2.9
现在,我将我的IP设置为以下地址的内部静态IP:192.168.2.9
So, you might want to check in on doing this as well, as it is a lot better than typing in localhost.
因此,您可能还想检查一下此操作,因为它比键入localhost好得多。
(Look at your Router configuration and set it accordingly)
(查看您的路由器配置并进行相应的设置)
Now, when you try to view your page it may give you a
现在,当您尝试查看页面时,可能会给您一个
[
[
500 - The website cannot display the page] Error.
500-网站无法显示页面 ]错误。
To get past this annoying error, do the following.
要克服此烦人的错误,请执行以下操作。
In
在
Internet Explorer (This applies to all IE Releases)
Internet Explorer (这适用于所有IE版本)
From the Menu click on [
从菜单中单击[
Tools |
工具 |
Internet Options]
互联网选项 ]
[
[
Advanced] Tab
高级 ]选项卡
Under [
在[
Browsing]
浏览 ]
Uncheck [
取消选中[
Show friendly HTTP error messages].
显示友好的HTTP错误消息 ]。
Click [
点击[
Apply] then [
申请 ],然后[
OK]
好吧
When opening your site for the first time after making these settings, it will take a moment for Internet Explorer to retrieve the page from IIS7.5, this only happens at the start, and will not happen again. I think that it has something to do with bounding to the IP Address?? Though I never seen this type of behavior in IIS4 or 5.1 so, maybe someone else can give a reason as to why it does this.
在进行了这些设置之后首次打开您的网站时,Internet Explorer会花一点时间从IIS7.5中检索页面,这仅在开始时发生,不会再次发生。 我认为这与绑定IP地址有关吗? 尽管我从未在IIS4或5.1中见过这种类型的行为,但也许其他人可以给出为什么这样做的理由。
When your page loads, and you should either see an ASP Error message (or) your live page.
页面加载后,您应该会看到ASP错误消息(或实时页面)。
Good Luck and Happy ASP Classic Programming.
祝您好运和ASP经典编程愉快。
To view the Video Tutorial of this online at Youtube.com
要在Youtube.com上在线观看此****
Please click here => http://www.youtube.com/watch?v=MiA-ox2OkI4
请点击此处=> http://www.youtube.com/watch?v=MiA-ox2OkI4
Carrzkiss
卡尔兹基斯
Written On: September 17, 2010
撰写日期:2010年9月17日
Revised On: September 21, 2010
修订日期:2010年9月21日