magento网站内部500错误.脚本头过早结束


Internal 500 error on magento site. Premature end of script headers

嗨,我有一个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

如何解决这个

尝试按照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+

一定要调试HTTP报头的长度。如果你超过了它的内部HTTP头限制8K, Apache可能会崩溃。

所有重要web服务器的HTTP头信息:

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