搜索
您的当前位置:首页正文

Win10系统中安装SiteServer CMS遇到的问题

来源:二三娱乐
安装错误一:
HTTP错误500.19-Internal Server Error
原因分析:

因为 IIS 7 采用了更安全的 web.config 管理机制,默认情况下会锁住配置项不允许更改。

解决办法:

运行命令行
C:\windows\system32\inetsrv\appcmd unlock config -section:system.webServer/handlers
其中的 handlers 是错误信息中红字显示的节点名称。
注意:cmd.exe要以管理员身份启动,在c:\windows\system32下找到cmd.exe,右键管理员启动,输入上面的命令即可。

安装错误二:
HTTP错误500.19-Internal Server Error
解决办法:

如果modules也被锁定,可以运行
C:\windows\system32\inetsrv\appcmd unlock config -section:system.webServer/modules

安装错误三:
HTTP错误500.21-Internal Server Error
解决办法:

首先,在Internet Information


在Internet Information

其次,以管理员运行下面的命令注册:
32位机器:
-i
64位机器:
–i

安装错误四:
HTTP错误403.14-Forbidden
解决办法:

配置默认文档并启用目录浏览


IIS设置默认文档
启用目录浏览
上传站点模板错误:
HTTP Error 404.13 - Not Found
原因分析:

Web 服务器上的请求筛选被配置为拒绝该请求,因为内容长度超过配置的值(IIS 7 默认文件上传大小时30M)。

  1. 修改IIS的applicationhost.config
    文件位置: %windir%/system32/inetsrv/config/applicationhost.config
    找到<requestFiltering>节点,该节点下默认没有 <requestLimits maxAllowedContentLength="上传大小的值(单位:byte)" /> 元素。
    为这个节点添加如下元素:<requestLimits maxAllowedContentLength="2147483647" /> (上传的大小将改为2G)
  2. web.config中,添加如下内容
<configuration>
  <system.web>
     <httpRuntime maxRequestLength="2097151" executionTimeout="120"/>
  </system.web>
</configuration>
说明:
  1. web.config中,把以下内容加在<system.webServer>节点
<security>
  <requestFiltering >
    <requestLimits maxAllowedContentLength="2147483647" ></requestLimits>
  </requestFiltering>
</security>

上述中maxAllowedContentLengt是以BK为单位。

  1. 修改IIS设置
    IIS里选择对应的站点, 进入[请求筛选]功能, 选择[查询字符串]选项卡, 点击右侧[编辑功能设置]进行设置


    编辑请求筛选设置

    5.重新启动IIS,关键!

Top