LAMP堆栈一切似乎正在工作,除了网站是空白的

我有一个LAMP堆栈,

  • Ubuntu 12.04.3 LTS
  • PHP 5.3.10-1ubuntu3.8与Suhosin-Patch(cli)(构build时间:Sep 4 2013 20:05:42)
  • Apache / 2.2.22(Ubuntu)
  • MYSQL 5.5.32-0ubuntu0.12.04.1(Ubuntu)
  • Codeigniter 2.1.0

所有这些都正在运行,因为它们应该是。

这些网站是:

  • bf.getsimpleapps.com
  • ac.getsimpleapps.com
  • getsimpleapps.com

有些用500服务器错误加载其他空白页面。

我怎么去debugging,为什么它不工作。 PHP网站/代码应该运行良好,代码已经生产了好几个月。

这一切都开始,因为我今天进入服务器,以清除一些磁盘空间(我删除了一些mysqldump )。 我也运行apt-get updateapt-get upgrade ,它可能已经更新了PHP。 现在,MySQL正在工作,我认为这是主要的错误,但现在这些网站没有响应。

我已经检查过各个站点的错误日志,而且没有任何内容。 我试图启用PHP错误报告,看看是否是这个问题,什么都没有出现。 我已经用“hello world” index.php文件replace了sites /public目录,它出现在网站上很好,这意味着服务器正在运行,对吗?

任何援助将是非常好的,我完全死在水中…

我没有足够的信息来debugging前两个,但最后一个链接是缺less一个正确的PHP开始标记。 您正在使用“<php”而不是“<?php”

请参阅此链接了解更多信息:

http://www.php.net/manual/en/language.basic-syntax.phptags.php

至于debugging前两个,我将开始检查Web服务器的错误日志文件。 通常,我发现它们位于“/ var / log”之类的地方。

这是来自您的服务器的回应。 我使用了stream量检查器应用程序来获取这些数据。

 bf.getsimpleapps.com HTTP/1.1 200 OK Date: Tue, 24 Sep 2013 00:47:28 GMT Server: Apache/2.2.22 (Ubuntu) X-Powered-By: PHP/5.3.10-1ubuntu3.8 Content-Encoding: gzip Vary: Accept-Encoding Content-Length: 26 Content-Type: text/html ac.getsimpleapps.com HTTP/1.0 500 Internal Server Error Date: Tue, 24 Sep 2013 00:47:45 GMT Server: Apache/2.2.22 (Ubuntu) X-Powered-By: PHP/5.3.10-1ubuntu3.8 Content-Encoding: gzip Vary: Accept-Encoding Content-Length: 26 Connection: close Content-Type: text/html getsimpleapps.com HTTP/1.1 200 OK Date: Tue, 24 Sep 2013 00:48:05 GMT Server: Apache/2.2.22 (Ubuntu) X-Powered-By: PHP/5.3.10-1ubuntu3.8 Vary: Accept-Encoding Content-Encoding: gzip Content-Length: 2252 Content-Type: text/html 

<PHP

…您的原始源代码由于安全原因被省略…