简体   繁体   English

升级到PHP 5.6后出现错误500

[英]Error 500 after upgrade to PHP 5.6

everybody 每个人

I'm working on certain project and it worked just fine until the server provider decided to upgrade to PHP 5.6 and now the page is showing error 500. 我正在某些项目上工作,直到服务器提供商决定升级到PHP 5.6且页面显示错误500为止,它的工作情况都很好。

I've already checked and I found out that this can be caused by few things... 我已经检查过,发现这可能是由几件事引起的...

This particular project doesn't use .htaccess file so, I know that's not the problem. 这个特定的项目不使用.htaccess文件,因此,我知道这不是问题。

I also read that problem can be somewhere on server so checked the log and this is the message that I get. 我还阅读到问题可能在服务器上的某个地方,因此检查了日志,这是我收到的消息。

[Fri Dec 04 10:17:47.603342 2015] [fcgid:warn] [pid 12468] (104)Connection reset by peer: [client 10.32.109.52:55105] mod_fcgid: error reading data from FastCGI server [2015年12月4日星期五10:17:47.603342] [fcgid:warn] [pid 12468](104)对等方重置的连接:[客户端10.32.109.52:55105] mod_fcgid:从FastCGI服务器读取数据时出错

[Fri Dec 04 10:17:47.603409 2015] [core:error] [pid 12468] [client 10.32.109.52:55105] End of script output before headers: index.php [2015年12月4日星期五10:17:47.603409] [core:error] [pid 12468] [client 10.32.109.52:55105]在标头之前的脚本输出结束:index.php

You've got a message: End of script output before headers: index.php So check your code in index.php . 你已经有了一个消息: End of script output before headers: index.php中那么检查你的代码index.php Just try to delete all code from file index.php and add this: 只需尝试从文件index.php删除所有代码并添加以下内容:

<?php phpinfo(); ?>

This should outputs information about PHP's configuration. 这应该输出有关PHP配置的信息。 If you can see this, so the problem is in your code in index.php . 如果可以看到此消息,则问题出在index.php中的代码中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM