Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at admin@php.cn to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
场景:PHPstudy 中的Apache+php+mysql
使用curl获取自行封装的接口数据,实现client与server分离,保证server信息的保密性的前提,调用数据,但遇见循环大量调用该接口会出现报错
脚本运行时间设置无限
内存无限
curl封装的时间也是延长
原因:FastCGI的服务器通信超时
FcgidIOTimeout 384 #运行超时设置
试图读或者写的Fastcgi应用将在设置的时间内等待进行工作
在apache中更改时长,再重启,但是这只是暂时处理,应为这样会使PHP进程常驻时间长,长期占用电脑资源,所以一般需要的时候才增加改变时长