php环境也配置成功,但是wordpress无法安装。考虑到无法创建wp-config.php文件,就手动创建,将wp-config-sample.php内容修改后,保存为wp-config.php即可。

_ueditor_page_break_tag_

百度的其它方法:http://www.lidaren.com/archives/259

http://www.blogjava.net/clin8888/archive/2010/06/08/323033.html

http://www.veryhuo.com/a/view/32667.html(这个解决方案比较靠谱,未尝试,以下为记录)

在GoDaddy windows主机上安装过wordpress的都知道,会出现500错误,但怎么解决这个GoDaddy windows主机500错误呢?花了好几个小时的时间,搜索了相关的教材,通过调试,发现以下方案能很好解决GoDaddy windows主机出现的500错误。方法就是通过web.config文件来解决。另外附上利用web.config进行wordpress伪静态的代码。

通过创建或修改web.config文件使之显示详细的错误。注意在wordpress根目录下上传以下内容的web.config文件。
代码1:(适用于GoDaddy Windows IIS6的web.config代码)

<!-- Web.Config Configuration File --><configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>

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

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

设置404错误页面
使用web.config文件也可以配置显示错误面
其中的mycustompage.htm是你想设置的错误页面
代码:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<customErrors mode="On" default Redirect="mycustompage.htm"/>
</system.web>
</configuration>
另外,Linux主机出现500 internal server error 500错误的可以参考下下面的方法:
在服务器控制面板中 选择Settings>>File Extension>>Default Extension 列表里有个.php 然后编辑,选择php5.x(默认的是php5.x FastCGI) 保存。
另外如何还不能解决,就到控制面板error log里也会有错误日志,分析下具体什么原因。
利用web.config对wordpress进行伪静态设置:

<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="wordpress" patternSyntax="Wildcard">
<match url="*" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.php" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>

最后修改:2014 年 06 月 22 日
如果觉得我的文章对你有用,请随意赞赏