apache在某些配置错误的情况下很容易出现服务器500错误,并没有给出具体的细节:比如是apache配置问题还是php的问题。
让apache展现出更多的细节:修改httpd.conf文件将日志级别改为:warn,表示警告级别以上的信息会写入日志。
以下错误是从error.log中找出的:
1、End of script output before headers: index.php
[Sun Feb 23 21:50:51.976340 2025] [fcgid:warn] [pid 4836:tid 1728] (OS 109)管道已结束。 : [client 127.0.0.1:15879] mod_fcgid: get overlap result error
[Sun Feb 23 21:50:51.976340 2025] [core:error] [pid 4836:tid 1728] [client 127.0.0.1:15879] End of script output before headers: index.php
①可能是php代码中header头设置相关
②奇怪,之前运行好好的,只是换了一下目录就成这样了。突然想起来,php版本是8.4.3,需要对要运行的exe文件进行VxKex属性。操作后,运行正常。注:php8.4正常情况下无法在win7上运行,需要特殊设置一下。
③④⑤
|