- apache error日志文件报错
[Fri Jun 04 15:56:39.784698 2021] [mpm_winnt:notice] [pid 330104:tid 452] AH00354: Child: Starting 150 worker threads.
[Fri Jun 04 15:57:10.965938 2021] [mpm_winnt:notice] [pid 326196:tid 456] AH00362: Child: Waiting 30 more seconds for 1 worker threads to finish.
[Fri Jun 04 15:57:27.829506 2021] [mpm_winnt:notice] [pid 330104:tid 452] AH00363: Child: Terminating 66 threads that failed to exit.
[Fri Jun 04 15:57:27.829506 2021] [mpm_winnt:notice] [pid 330104:tid 452] AH00364: Child: All worker threads have exited.
- apache httpd.conf 文件如下
<IfModule mod_fcgid.c>
AddHandler fcgid-script .fcgi .php
#php.ini的存放目录
FcgidInitialEnv PHPRC "C:/wasp/php-7.3.25"
# 设置PHP_FCGI_MAX_REQUESTS大于或等于FcgidMaxRequestsPerProcess,防止php-cgi进程在处理完所有请求前退出
FcgidInitialEnv PHP_FCGI_MAX_REQUESTS 1000
#php-cgi每个进程的最大请求数
FcgidMaxRequestsPerProcess 1000
#php-cgi最大的进程数
FcgidMaxProcesses 128
#最大执行时间
FcgidIOTimeout 120
FcgidIdleTimeout 120
#php-cgi的路径
FcgidWrapper "C:/wasp/php-7.3.25/php-cgi.exe" .php
AddType application/x-httpd-php .php
#上传文件最大限制
FcgidMaxRequestLen 1572864
MaxRequestsPerChild 50
</IfModule>