【问题标题】:Any of my php files on the server generated 500 "Internal Server Error"我在服务器上的任何 php 文件都生成了 500“内部服务器错误”
【发布时间】:2011-06-27 18:38:49
【问题描述】:

直到昨天早上(12 小时前)一切正常。但是现在每个 PHP 页面都显示“500 Internal Server Error”。请查看此链接http://abusadat.com。这是一个 WordPress 网站。我以为是关于 WordPress 的。

但我有一个子域,其中有一个 PHP 文件 - http://demo.abusadat.com/fb-apps/index.php,它得到相同的错误。虽然在同一位置,但有一个 HTML 文件 http://demo.abusadat.com/fb-apps/test.html,它可以正常工作。为了测试 PHP 页面中的任何语法是否会导致该错误,我在“index.php”文件的第一行放置了一个“die('some message')”,但它显示了相同的错误。该子域中没有 HTAccess。

一切正常 - 突然所有 PHP 都停止了,我无法解决问题。有人可以帮忙吗?

已编辑: *来自 cPanel 的最新错误日志*

[Mon Jun 27 14:42:30 2011] [error] [client 59.93.241.43] File does not exist: /home/abusadat/public_html/demo.abusadat/404.shtml
[Mon Jun 27 14:42:30 2011] [error] [client 59.93.241.43] File does not exist: /home/abusadat/public_html/demo.abusadat/favicon.ico
[Mon Jun 27 14:42:29 2011] [error] [client 59.93.241.43] File does not exist: /home/abusadat/public_html/demo.abusadat/404.shtml
[Mon Jun 27 14:42:29 2011] [error] [client 59.93.241.43] File does not exist: /home/abusadat/public_html/demo.abusadat/favicon.ico
[Mon Jun 27 14:42:26 2011] [error] [client 59.93.241.43] File does not exist: /home/abusadat/public_html/demo.abusadat/404.shtml
[Mon Jun 27 14:42:26 2011] [error] [client 59.93.241.43] File does not exist: /home/abusadat/public_html/demo.abusadat/favicon.ico
[Mon Jun 27 14:40:53 2011] [error] [client 70.176.105.10] File does not exist: /home/abusadat/public_html/demo.abusadat/404.shtml
[Mon Jun 27 14:40:53 2011] [error] [client 70.176.105.10] File does not exist: /home/abusadat/public_html/demo.abusadat/favicon.ico
[Mon Jun 27 14:40:53 2011] [error] [client 70.176.105.10] File does not exist: /home/abusadat/public_html/demo.abusadat/404.shtml
[Mon Jun 27 14:40:53 2011] [error] [client 70.176.105.10] File does not exist: /home/abusadat/public_html/demo.abusadat/favicon.ico
[Mon Jun 27 14:40:53 2011] [error] [client 70.176.105.10] File does not exist: /home/abusadat/public_html/demo.abusadat/500.shtml, referer: http://stackoverflow.com/questions/6497358/any-of-my-php-files-on-the-server-generated-500-internal-server-error
[Mon Jun 27 14:40:00 2011] [error] [client 180.234.41.26] File does not exist: /home/abusadat/public_html/demo.abusadat/500.shtml
[Mon Jun 27 14:39:48 2011] [error] [client 180.234.41.26] File does not exist: /home/abusadat/public_html/demo.abusadat/404.shtml
[Mon Jun 27 14:39:48 2011] [error] [client 180.234.41.26] File does not exist: /home/abusadat/public_html/demo.abusadat/fb-app
[Mon Jun 27 14:39:34 2011] [error] [client 109.132.111.25] File does not exist: /home/abusadat/public_html/demo.abusadat/404.shtml
[Mon Jun 27 14:39:34 2011] [error] [client 109.132.111.25] File does not exist: /home/abusadat/public_html/demo.abusadat/favicon.ico

谢谢, 萨达特

【问题讨论】:

  • 我们需要日志文件来了解发生了什么。您的日志文件会告诉您为什么会收到 500 错误。
  • 您的服务器日志中显示了哪些错误?
  • 你的日志在服务器上说了什么?
  • 请在此处从我们的错误日志中添加一些输出。只有 500 页是不够的。
  • 您是否对您的网站进行了任何更新?你可以试试静态页面吗?你能信任你的虚拟主机(我的意思是,他们不是在维护)吗?

标签: php


【解决方案1】:

您应该检查您的日志文件,以确定在问题首次出现时是否发生了自动更新。还要检查 Apache(或您的 Web 服务器)是否在那个时候重新启动,激活了以前的更新。

【讨论】:

  • 这是一个共享主机。我如何知道和跟踪任何系统/网络服务器/php 更新?
  • @Sadat:您应该联系托管公司的技术支持部门。他们将有任何服务器维护的记录。此外,您应该与对您的主机帐户拥有管理权限的所有人核实,看看他们是否安装了新软件或更改了任何配置。
  • 感谢@George。我将与托管公司联系。我是唯一一个管理我的域和托管的人。
猜你喜欢
  • 2016-02-19
  • 2021-06-09
  • 1970-01-01
  • 1970-01-01
  • 2018-03-18
  • 2012-10-12
  • 2013-03-24
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多