AnswerBun.com

mod_fcgid: read data timeout in 40 seconds

Stack Overflow Asked by complexi on September 6, 2020

we’re running centos/cPanel on a good size dedicated server with only one website. we need speed and ability to upload files under ‘nobody’. that means suPHP and DSO are out. so the php handler is mod_fcgid. from time to time apache error logs will show mod_fcgid: read data timeout in 40 seconds. we assume it means mod_fcgid is not properly configured when installed using easyapache.

after reading up on g about how to fix we found two tidbits. one deals with MPM. the other, surprisingly, shows how to increase the timeout response (normally increasing timeout response is bad thing as there is something worse inside the server).

should we use MPM event, prefork, and/or worker with mod_fcgid? we currently have prefork configured.

if we do increase the timeout should we use the following settings:

IPCConnectTimeout 20
ProcessLifeTime 120
IdleTimeout 60
IdleScanInterval 30
MaxRequestsPerProcess 499
MaxProcessCount 100

OR

FcgidProcessLifeTime 8200
FcgidIOTimeout 8200
FcgidConnectTimeout 400
FcgidMaxRequestLen 1000000000

And if we do use either of these settings where should they be set: 1) in php.fcgi script, or 2) FastCGI configuration in Apache.

2 Answers

My tested solution, same issue

target config file :

/usr/local/apache/conf/includes/pre_virtualhost_global.conf

target value :

FcgidIOTimeout

applying changes :

/scripts/rebuildhttpdconf

/etc/init.d/httpd restart

reference : https://wiki.mikejung.biz/Fcgid#FcgidMaxRequestLen

Answered by Bdwey on September 6, 2020

/etc/apache2/mods-enable/fcgid.conf

*/mods-available/fcgid.conf */sites-enable/site.com.vhost

<IfModule mod_fcgid.c>
   AddHandler fcgid-script .fcgi
   IdleTimeout 300
   BusyTimeout 300
   ProcessLifeTime 7200
   IPCConnectTimeout 300
   IPCCommTimeout 7200
</IfModule>

Answered by user2855332 on September 6, 2020

Add your own answers!

Related Questions

Add AWS Cognito to angular application

1  Asked on November 16, 2021 by captainmorgan

     

How to analize which object owns the max memory

0  Asked on November 16, 2021 by loverszhaokai

         

enable_if, SFINAE and template parameters?

2  Asked on November 16, 2021

 

Dynamic ‘wait’ arg in Scrapy-splash

0  Asked on November 16, 2021 by winters

       

Grab a decimal between 2 strings regex

1  Asked on November 15, 2021 by lenny-gonzalez

 

Django , models object not displayed in views

2  Asked on November 15, 2021 by mxzero-mxzero

     

Re-render a sibling component using hooks

3  Asked on November 15, 2021 by programmer1

     

filter method returns empty array

3  Asked on November 15, 2021

     

Fit container inside image

1  Asked on November 15, 2021

 

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP