php中500内部服务器错误的原因

时间:2017-03-15 06:39:53

标签: php apache

我正在尝试使用php代码在服务器上上传大图像(1 MB),但确实如此 显示500内部服务器错误,它只上传最大128 KB。 即使我已经检查了我的服务器的所有必需设置 所有设置都是正确的我没有得到如何追踪这个错误。是的 还有其他任何我不知道的环境,请帮助我找出或 如果所有设置都没问题,那么请帮我跟踪这个500内部服务器错误。

我已经验证的设置。

memory_limit 90M
post_max_size 64M
upload_max_filesize 64M
FcgidMaxRequestLen 104857600

以下是错误:

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@domain.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

1 个答案:

答案 0 :(得分:2)

在页面顶部使用两行显示错误

ini_set("display_errors", "1");

error_reporting(E_ALL);
相关问题