Hi Moodlers,
I'm running Moodle 3.5.X on a WAMP stack and encountering a weird issue with PHP7 & FCGI.
I currently have apache 2.4 running on Windows server 2008r2 and configured with FCGI with the following settings:
LoadModule fcgid_module modules/mod_fcgid.so
<IfModule fcgid_module>
FcgidInitialEnv PATH "C:/Progra~1/PHP/;C:/WINDOWS/system32;C:/WINDOWS;C:/WINDOWS/System32/Wbem;"
FcgidInitialEnv SystemRoot "C:/Windows"
FcgidInitialEnv SystemDrive "C:"
FcgidInitialEnv TEMP "C:\Windows\Temp"
FcgidInitialEnv TMP "C:\Windows\Temp"
FcgidInitialEnv windir "C:/WINDOWS"
FcgidIOTimeout 1200
FcgidConnectTimeout 1200
FcgidBusyScanInterval 1200
FcgidBusyTimeout 1200
FcgidErrorScanInterval 1200
FcgidIdleScanInterval 1200
FcgidIdleTimeout 1200
FcgidProcessLifeTime 3600
FcgidZombieScanInterval 1200
FcgidMaxRequestsPerProcess 1000
FcgidMaxProcesses 500
FcgidMaxRequestLen 813107200
# Location php.ini:
FcgidInitialEnv PHPRC "C:/Progra~1/PHP/"
FcgidInitialEnv PHP_FCGI_MAX_REQUESTS 5000
<Files ~ "\.php$">
Options Indexes FollowSymLinks ExecCGI
AddHandler fcgid-script .php
FcgidWrapper "C:/Progra~1/PHP/php-cgi.exe" .php
</Files>
</IfModule>
Intermittently Moodle stops responding to requests and the logs are full of errors like:
[Thu May 16 10:03:50.071867 2019] [core:error] [pid 14044:tid 8284] [client 172.17.115.24:54804] End of script output before headers: index.php
[Thu May 16 10:03:50.071867 2019] [fcgid:warn] [pid 14044:tid 7640] (OS 109)The pipe has been ended. : [client 10.0.77.1:52951] mod_fcgid: get overlap result error, referer: https://moodleserver_URL/mod/assign/view.php?id=88
Googling the error hasn't been that helpful, and I'm assuming the server not responding is due to some FCGI timeout (As I have 100 php-cgi.exe processes running) and other virtual hosts on that server are responding and windows task manager is showing that there are both CPU and RAM resources to spare.
Is anyone else running Apache 2.4 and PHP 7 using FCGI on windows? If so are you willing to share your FCGI config?