Written on 2011年12月29日 @ 01:15 | by spirit | Tags: godaddy  wordpress   | 浏览:

最近在godaddy空间的win主机上安装wordpress时候,老是报错500 - Internal server error.There is a problem with the resource you are looking for, and it cannot be displayed. 单独上传简单的页面是没有问题,测试过目录权限也正常的,郁闷了2天之后,终于在Google上找到了答案:

原来Godaddy的主机如果程序出错的话就直接报上面的那个错误,即使你是刚上传的WordPress程序,因为WordPress默认是没有配置的,肯定会报错提示你输入配置信息,而这刚好与Godaddy的主机相冲突,所以就会报错误。解决方法很简单,如果你用的Windows IIS6或者IIS7主机,把以下代码复制下来,命名为web.config上传至网站根目录即可。

Windows IIS6的用户使用下面的代码
<configuration>
    <system.web>
        <customErrors mode="Off"/>
        <compilation debug="true"/>
    </system.web>
</configuration>

  Windows IIS7的用户使用下面的代码

<configuration>
    <system.webServer>
        <httpErrors errorMode="Detailed" />
        <asp scriptErrorSentToBrowser="true"/>
    </system.webServer>
    <system.web>
        <customErrors mode="Off"/>
        <compilation debug="true"/>
    </system.web>
</configuration>

以上代码保存为web.config上传至wordpress网站根目录即可。注意是根目录,不是FTP的子目录!网站若是在子目录,那么这个也得放根目录,相对位置请注意!


若转载请注明出处: Spirit's Home
本文地址: http://www.7788sky.cn/post/godaddy-win-wordpress-500-error.html
  1. 1 Response to “godaddy win主机安装wordpress 500错误”

  2. By 文档安全 on 2012-1-5 11:04:47| http://www.isecstar.com/NetForeign/Product/Default.aspx

    分享不错啊

Post a Comment

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。