CGI-PHP 错误和重定向问题 WordPress MU

发布于 2024-07-24 06:24:36 字数 1155 浏览 7 评论 0原文

我在 http://www.optimalthinking.com/community/wp 安装了 wordpress Mu -admin/install.php

但是当我访问 http://www.optimalthinking.com/community /

我明白了

安全警报! PHP CGI 不能 直接访问。

这个 PHP CGI 二进制文件是用 强制 cgi 重定向已启用。 这意味着 仅在以下情况下才会提供页面 REDIRECT_STATUS CGI 变量是 设置,例如通过 Apache Action 指令。

有关原因的更多信息 行为存在,请参阅手册页 用于 CGI 安全。

有关更改的更多信息 此行为或重新启用此 网络服务器,请参阅安装 该发行版附带的文件, 或访问手册页。

谁能告诉我问题是什么以及如何解决它。

到目前为止我尝试过的事情:

  1. 重新安装 WPMU
  2. http://mu.wordpress.org/forums/ topic/5529
  3. http://trac.mu.wordpress.org/ticket/502尝试
  4. 更改 .htaccess

所有这些事情都没有产生任何结果。 如果 stackoverflow 允许的话,我会奖励任何能解决这个问题的人。

谢谢

I installed wordpress Mu at http://www.optimalthinking.com/community/wp-admin/install.php

But when I visit http://www.optimalthinking.com/community/

I get

Security Alert! The PHP CGI cannot be
accessed directly.

This PHP CGI binary was compiled with
force-cgi-redirect enabled. This means
that a page will only be served up if
the REDIRECT_STATUS CGI variable is
set, e.g. via an Apache Action
directive.

For more information as to why this
behaviour exists, see the manual page
for CGI security.

For more information about changing
this behaviour or re-enabling this
webserver, consult the installation
file that came with this distribution,
or visit the manual page.

Can anyone tell me what's the problem and how it can be fixed.

Things I have tried so far:

  1. Reinstalled the WPMU
  2. http://mu.wordpress.org/forums/topic/5529
  3. http://trac.mu.wordpress.org/ticket/502
  4. Tried changing .htaccess

All these things didnt yield any results. If stackoverflow allows me, I would reward anybody who would fix this.

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

入画浅相思 2024-07-31 06:24:36

您需要修复 php.ini

添加/修复此行:

force_cgi_redirect = 0

或者,在最新的 PHP 版本中:

cgi.force_redirect = 0

感谢常见问题解答和 Google

You need to fix your php.ini

Add/fix this line:

force_cgi_redirect = 0

or, in latest PHP versions:

cgi.force_redirect = 0

Thanks to FAQTS and Google

无需解释 2024-07-31 06:24:36

在我看来,这与您的配置有关,由于某些原因,脚本尝试将用户重定向到私有的 cgi-bin 文件夹。

In my opinion it have something to do with your configuration, for some reasons script trying to redirect user to cgi-bin folder which is private.

毁我热情 2024-07-31 06:24:36

来自 https://www.php.net/security.cgi-bin

PHP CGI with VirtualHosts.

This is what I found out while trying to get php to work as CGI with Apache VirtualHosts.

By enabling 'force-cgiredirects', you *must*:
1) set 'cgi.fix_pathinfo=1' in php.ini
2) leave doc_root commented out (php.ini also)

If you miss item 1, the apache logs will show 'unexpected T_STRING' in the php binary.
If you miss item 2, you'll only see 'No input file specified.', instead of the expected output.

You can then turn on the php support for a particular vhost by defining:

Action php-script /cgi-bin/php

inside the corresponding <VirtualHost> directive.

干杯。

From https://www.php.net/security.cgi-bin

PHP CGI with VirtualHosts.

This is what I found out while trying to get php to work as CGI with Apache VirtualHosts.

By enabling 'force-cgiredirects', you *must*:
1) set 'cgi.fix_pathinfo=1' in php.ini
2) leave doc_root commented out (php.ini also)

If you miss item 1, the apache logs will show 'unexpected T_STRING' in the php binary.
If you miss item 2, you'll only see 'No input file specified.', instead of the expected output.

You can then turn on the php support for a particular vhost by defining:

Action php-script /cgi-bin/php

inside the corresponding <VirtualHost> directive.

Cheers.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文