在windows IIS7主机上安装
Wordpress
时报500错误,代码如下:
500 – Internal server error. There is a problem with the resource you are looking for, and it cannot be displayed.
IIS的主机如果Wordpress程序出错的话就直接报这个错误,即使你是刚上传的Wordpress程序,因为Wordpress默认是没有配置的,肯定会报错提示你输入配置信息,而这刚好与IIS的主机相冲突,所以就会报错。
windows IIS7主机上安装Wordpress解决方法很简单,以上代码保存为web.config上传至网站根目录即可。 注意全半角!
<configuration>
<system.webServer>
<httpErrors errorMode="Detailed" />
<asp scriptErrorSentToBrowser="true"/>
</system.webServer>
<system.web>
<customErrors mode="Off"/>
<compilation debug="true"/>
</system.web>
</configuration>
500 – Internal server error. There is a problem with the resource you are looking for, and it cannot be displayed.
IIS的主机如果Wordpress程序出错的话就直接报这个错误,即使你是刚上传的Wordpress程序,因为Wordpress默认是没有配置的,肯定会报错提示你输入配置信息,而这刚好与IIS的主机相冲突,所以就会报错。
windows IIS7主机上安装Wordpress解决方法很简单,以上代码保存为web.config上传至网站根目录即可。 注意全半角!
<configuration>
<system.webServer>
<httpErrors errorMode="Detailed" />
<asp scriptErrorSentToBrowser="true"/>
</system.webServer>
<system.web>
<customErrors mode="Off"/>
<compilation debug="true"/>
</system.web>
</configuration>