【问题标题】:Internal 500 error on magento site. Premature end of script headersMagento 网站上的内部 500 错误。脚本头过早结束
【发布时间】:2017-02-10 00:12:06
【问题描述】:

您好,我有一个 magento 网站,现在在加载网站时给我一个内部 500 错误

整个 /var/www 的权限已更改为不同的用户,但它搞砸了。

所以恢复到 www-data。除 magento 站点外,所有其他站点都很好。我检查了日志,它不断显示以下错误:

[Thu Mar 13 13:59:31 2014] [warn] [client 66.249.67.68] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server

[Thu Mar 13 13:59:31 2014] [error] [client 66.249.67.68] Premature end of script headers: index.php

有什么办法可以解决这个问题

【问题讨论】:

    标签: php magento


    【解决方案1】:

    尝试按照 wiki 中的说明重置文件权限。 https://www.magentocommerce.com/wiki/groups/227/resetting_file_permissions

    find . -type f -exec chmod 644 {} \;
    find . -type d -exec chmod 755 {} \;
    chmod 550 pear
    chmod 550 mage #for magento 1.5+
    

    【讨论】:

    • 嗨,不幸的是没有工作,但我更改了 Apache 服务器上 suexec 的权限,并且该站点正在运行。但现在我收到错误警告:SuexecUserGroup 指令需要 SUEXEC 包装器。但我确定 magento 中还有其他内容需要更改才能使网站正常运行,而不是 suexec for apache 上的 tje securoty?
    【解决方案2】:

    请务必调试您的 HTTP 标头的长度。如果超过 8K 的内部 HTTP 标头限制,Apache 可能会崩溃。

    有关所有重要 Web 服务器的 HTTP 标头的更多信息:

    https://stackoverflow.com/a/8623061/286238David Schoonover

    【讨论】:

      猜你喜欢
      • 2017-07-22
      • 2013-07-09
      • 2012-06-09
      • 2011-05-19
      • 2011-04-05
      • 2016-04-06
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多