当前位置:论坛首页 > Windows面板 > 求助

windows 2008企业版服务器iis怎么同时支持asp和php

发表在 Windows面板2017-10-6 16:40 [复制链接] 2 6827

用的阿里云的服务器,windows 2008  安装的iis7.5  用的宝塔面板

本身有一个php的网站,现在想放一个asp 的网站,要怎么操作,各位大神可以告知下吗?
使用道具 举报 只看该作者 回复
发表于 2017-10-6 21:24:14 | 显示全部楼层
系统自带的就支持,角色管理里面-IIS功能里面添加asp功能,然后也是管理器里面安装.net
使用道具 举报 回复 支持 反对
发表于 2017-10-7 15:30:47 | 显示全部楼层
本帖最后由 zaomeng 于 2017-10-7 15:31 编辑
luoshangde 发表于 2017-10-6 21:24
系统自带的就支持,角色管理里面-IIS功能里面添加asp功能,然后也是管理器里面安装.net ...

打开asp调试时访问网页显示的错误代码:

Microsoft OLE DB Provider for ODBC Drivers 错误 '80004005'

[Microsoft][ODBC Microsoft Access 驱动程序] Could not find file '(未知的)'.

/inc/conn.asp,行 33



conn.asp文件部分代码:
<%
yz = ""
If Trim(Request.QueryString) <> "" Then
        strTemp = strTemp & "?" & Trim(Request.QueryString)
        If Instr(strTemp,"select%20") or Instr(strTemp,"insert%20") or Instr(strTemp,"delete%20") or Instr(strTemp,"count(") or Instr(strTemp,"drop%20table") or Instr(strTemp,"update%20") or Instr(strTemp,"truncate%20") or Instr(strTemp,"asc(") or Instr(strTemp,"mid(") or Instr(strTemp,"char(") or Instr(strTemp,"xp_cmdshell") or Instr(strTemp,"exec%20master") or Instr(strTemp,"net%20localgroup%20administrators") or Instr(strTemp,":") or Instr(strTemp,"net%20user") or Instr(strTemp,"'") or Instr(strTemp,"%20or%20") then
                yz = "no"
        End If
end if

if yanzheng = "不需要验证131" then
        If Trim(Request.form) <> "" Then
                strTemp = strTemp & "?" & Trim(Request.form)
                If Instr(strTemp,"select+") or Instr(strTemp,"insert+") or Instr(strTemp,"delete+") or Instr(strTemp,"count(") or Instr(strTemp,"drop+table") or Instr(strTemp,"update+") or Instr(strTemp,"truncate+") or Instr(strTemp,"asc(") or Instr(strTemp,"mid(") or Instr(strTemp,"char(") or Instr(strTemp,"xp_cmdshell") or Instr(strTemp,"exec+master") or Instr(strTemp,"net+localgroup+administrators") or Instr(strTemp,"net+user") or Instr(strTemp,"%25") or Instr(strTemp,"%27") or Instr(strTemp,"+or+") then
                        yz = "no"
                End If
        end if
end if

if yz = "no" then
        response.write "<br><br>请不要试图攻击本网站!本网站的运营受法律保护!<br><br>"
        response.write "如果这不是攻击行为,请检查你的提交内容,里面可能有危险的字符串!"
        response.End()
end if
%><%
dim conn
dim connstr
db="Database/DataShop.asp" '数据库文件位置
connstr="DBQ="+server.mappath(""&db&"")+";DefaultDir=;DRIVER={Microsoft Access Driver (*.mdb)};"
set conn=server.createobject("ADODB.CONNECTION")
if err then
err.clear
else
conn.open connstr                                                   #################第三十三行
end if




asp

asp

.net

.net

父路径

父路径
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

企业版年付运维跟进群

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急问题处理

论坛响应时间:10分钟

问题处理方式:1对1处理(优先)

工作时间:白班:9:00 - 18:00

工作时间:晚班:18:00 - 24:00

立即付费处理
快速回复 返回顶部 返回列表