【问题标题】:Apache and Internal Server error and internal redirects on WordPress installWordPress 安装上的 Apache 和内部服务器错误以及内部重定向
【发布时间】:2011-07-20 13:29:40
【问题描述】:

在过去的 4 周内,我无法在本地 Apache 上自动安装 WordPress。另一台机器上的正常过程是标准的 - 复制 WP 安装,运行并执行安装脚本。我在这里看到的要么是空白页,要么是内部服务器错误。

即使我使用设置手动更正我的 wp-config.php 文件并安装,我还是会再次收到相同的错误。最后一个 WP 版本分发时没有 .htaccess,因此我希望本地服务器的每次安装都不需要 .htaccess。

这里有我对目录的 httpd.conf 设置:

<Directory "/var/www/html">
    Options Indexes FollowSymLinks
    Order allow,deny
    Allow from all
    AllowOverride All
</Directory>

mod_rewrite 在这里加载。

我也怀疑我的 /etc/hosts,但我们有以下几点:

127.0.0.1   localhost   localhost.localdomain

我查看了我的 php.ini 文件(PHP 是 5.3.3),没有具体问题。但是,我的 apache 错误日志指出以下内容:

 [error] [client 127.0.0.1] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.

有什么想法吗?

【问题讨论】:

    标签: apache wordpress .htaccess


    【解决方案1】:

    听起来要么是重写规则导致了无限的重写循环,要么是您的配置中存在某种其他类型的别名循环。如果没有看到您的 apache 配置的其余部分,我将无法确定。

    【讨论】:

    • 我不使用虚拟主机,它是 Apache 上的全新安装,并且是那里的根文档目录。还有什么影响?
    猜你喜欢
    • 2015-09-26
    • 1970-01-01
    • 1970-01-01
    • 2013-12-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-07-11
    • 1970-01-01
    相关资源
    最近更新 更多