Configuration on FastCGI to prevent Error

Nirjonadda

Well-Known Member
May 8, 2013
736
27
78
cPanel Access Level
Root Administrator
Please let me know that how to configuration on FastCGI to prevent error?

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
/usr/local/apache/logs/error_log

Code:
[Thu Jul 20 23:10:28.927148 2017] [fcgid:warn] [pid 2259:tid 140479848965888] [client 151.55.157.40:56816] mod_fcgid: read data timeout in 40 seconds, referer: https://www.mysite.com/admin.php?add-ons/s9e/upgrade
[Thu Jul 20 23:10:28.927202 2017] [core:error] [pid 2259:tid 140479848965888] [client 151.55.157.40:56816] End of script output before headers: admin.php, referer: https://www.mysite.com.com/admin.php?add-ons/s9e/upgrade
[Thu Jul 20 23:10:36.454950 2017] [fcgid:warn] [pid 1990:tid 140480792025216] mod_fcgid: process 2335 graceful kill fail, sending SIGKILL
[Thu Jul 20 23:12:25.378155 2017] [fcgid:warn] [pid 2259:tid 140480179058432] (103)Software caused connection abort: [client 172.58.43.190:45417] mod_fcgid: can't get data from http client, referer: https://www.mysite.com.com/threads/3d-comics-mega-collection-update-available.26564/page-57
[Thu Jul 20 23:16:19.236252 2017] [fcgid:warn] [pid 2039:tid 140479958071040] (32)Broken pipe: [client 103.213.237.229:2471] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function, referer: https://www.mysite.com.com/threads/doctor-aunt-showing-boobs.50043/page-2
[Thu Jul 20 23:16:19.306886 2017] [fcgid:warn] [pid 1991:tid 140479882536704] (32)Broken pipe: [client 103.213.237.229:2472] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function, referer: https://www.mysite.com.com/threads/doctor-aunt-showing-boobs.50043/page-2
[Thu Jul 20 23:22:01.736464 2017] [fcgid:warn] [pid 3854:tid 140480254592768] (103)Software caused connection abort: [client 137.59.5.242:44962] mod_fcgid: can't get data from http client, referer: https://www.mysite.com.com/
[Thu Jul 20 23:22:06.790996 2017] [fcgid:warn] [pid 3854:tid 140480254592768] (103)Software caused connection abort: [client 137.59.5.242:44962] mod_fcgid: can't get data from http client, referer: https://www.mysite.com.com/watched/tags/all
[Thu Jul 20 23:24:03.401240 2017] [fcgid:warn] [pid 4383:tid 140480128702208] (103)Software caused connection abort: [client 103.67.156.39:50881] mod_fcgid: can't get data from http client, referer: https://www.mysite.com.com/threads/doggy-style-mommy.8364/
[Thu Jul 20 23:25:14.549998 2017] [fcgid:warn] [pid 1991:tid 140479924500224] (32)Broken pipe: [client 103.85.235.249:48921] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function, referer: https://www.mysite.com.com/threads/bengali.14986/
[Thu Jul 20 23:25:14.551008 2017] [fcgid:warn] [pid 4234:tid 140480103524096] (32)Broken pipe: [client 103.85.235.249:39530] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function, referer: https://www.mysite.com.com/threads/bengali.14986/
[Thu Jul 20 23:25:20.074849 2017] [fcgid:warn] [pid 3854:tid 140480145487616] (103)Software caused connection abort: [client 47.11.12.39:57571] mod_fcgid: can't get data from http client, referer: https://www.mysite.com.com/threads/846/page-3
[Thu Jul 20 23:25:29.860321 2017] [fcgid:warn] [pid 2259:tid 140480212629248] (103)Software caused connection abort: [client 103.77.63.151:60876] mod_fcgid: can't get data from http client, referer: https://www.mysite.com.com/threads/52917/
[Thu Jul 20 23:25:29.860603 2017] [fcgid:warn] [pid 2259:tid 140480296556288] (103)Software caused connection abort: [client 103.77.63.151:60876] mod_fcgid: can't get data from http client, referer: https://www.mysite.com.com/forums/incest-choti.112/page-24
[Thu Jul 20 23:25:29.860817 2017] [fcgid:warn] [pid 2259:tid 140480229414656] (103)Software caused connection abort: [client 103.77.63.151:60876] mod_fcgid: can't get data from http client, referer: https://www.mysite.com.com/threads/1843/
[Thu Jul 20 23:25:29.861946 2017] [fcgid:warn] [pid 2259:tid 140480145487616] (103)Software caused connection abort: [client 103.77.63.151:60876] mod_fcgid: can't get data from http client, referer: https://www.mysite.com.com/threads/by-rocketman-augustus.30637/
[Thu Jul 20 23:25:29.862435 2017] [fcgid:warn] [pid 2259:tid 140480246200064] (103)Software caused connection abort: [client 103.77.63.151:60876] mod_fcgid: can't get data from http client, referer: https://www.mysite.com.com/threads/1.8150/
[Thu Jul 20 23:25:48.416933 2017] [fcgid:warn] [pid 2259:tid 140480296556288] (103)Software caused connection abort: [client 137.59.5.242:44989] mod_fcgid: can't get data from http client, referer: https://www.mysite.com.com/forums/self-written-choti.114/
[Thu Jul 20 23:28:35.139512 2017] [fcgid:warn] [pid 2000:tid 140480153880320] (103)Software caused connection abort: [client 202.134.14.136:12309] mod_fcgid: can't get data from http client, referer: https://www.mysite.com.com/conversations/add?to=Urmi+Hasin
[Thu Jul 20 23:31:14.122116 2017] [fcgid:warn] [pid 2259:tid 140480229414656] (70007)The timeout specified has expired: [client 103.77.63.151:60876] mod_fcgid: can't get data from http client, referer: https://www.mysite.com.com/forums/incest-choti.112/page-24
[Thu Jul 20 23:33:33.729745 2017] [fcgid:warn] [pid 4383:tid 140480179058432] (103)Software caused connection abort: [client 46.177.142.3:53693] mod_fcgid: can't get data from http client, referer: https://www.mysite.com.com/threads/8154/
[Thu Jul 20 23:35:26.124447 2017] [fcgid:warn] [pid 1991:tid 140480128702208] (70007)The timeout specified has expired: [client 103.77.63.151:60952] mod_fcgid: can't get data from http client, referer: https://www.mysite.com.com/threads/52917/
 

Nirjonadda

Well-Known Member
May 8, 2013
736
27
78
cPanel Access Level
Root Administrator
Hello,

Here's a thread where error messages like that are discussed:

Errors after enabling FastCGI

Thank you.

I do follow the below steps:

"WHM Home » Service Configuration » Apache Configuration » Include Editor » Pre VirtualHost Include" and added this code.

Code:
<IfModule mod_fcgid.c>
FcgidBusyScanInterval 90
FcgidBusyTimeout 600
FcgidErrorScanInterval 3
FcgidFixPathinfo 1
FcgidIdleScanInterval 70
FcgidIdleTimeout 360
FcgidIOTimeout 1000
FcgidMaxProcesses 1000
FcgidMaxProcessesPerClass 100
FcgidMaxRequestInMem 268435456
FcgidMaxRequestLen 1073741824
FcgidMaxRequestsPerProcess 0
FcgidMinProcessesPerClass 3
FcgidOutputBufferSize 1048576
FcgidPassHeader HTTP_AUTHORIZATION
FcgidProcessLifeTime 3600
FcgidSpawnScore 1
FcgidSpawnScoreUpLimit 10
FcgidTerminationScore 2
FcgidTimeScore 2
FcgidZombieScanInterval 3
</IfModule>
But I am still are getting 500 Internal Server Error.

Code:
[Fri Jul 21 00:15:15.407681 2017] [fcgid:warn] [pid 10793:tid 140589949499136] [client 151.55.157.40:58046] mod_fcgid: read data timeout in 40 seconds, referer: https://www.mysite.com/admin.php?add-ons/s9e/upgrade
[Fri Jul 21 00:15:15.407787 2017] [core:error] [pid 10793:tid 140589949499136] [client 151.55.157.40:58046] End of script output before headers: admin.php, referer: https://www.mysite.com/admin.php?add-ons/s9e/upgrade
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,216
463
Hello,

You added several custom values. Try using just a single value (e.g. FcgidMaxRequestLen) to start and then go from there. Please also note the information from the following document:

Apache Module: FCGId - EasyApache 4 - cPanel Documentation

The mod_fcgid Apache module is only recommended for advanced system administrators who understand how to modify the performance of the mod_fcgid Apache module.
Thank you.
 

Nirjonadda

Well-Known Member
May 8, 2013
736
27
78
cPanel Access Level
Root Administrator
Hello,

You added several custom values. Try using just a single value (e.g. FcgidMaxRequestLen) to start and then go from there. Please also note the information from the following document:

Apache Module: FCGId - EasyApache 4 - cPanel Documentation



Thank you.
I added Full configuration via /usr/local/apache/conf/includes/post_virtualhost_global.conf and all are worked. Does this correct place to add the configuration and will not be overwritten when Apache is recompiled?
 

Nirjonadda

Well-Known Member
May 8, 2013
736
27
78
cPanel Access Level
Root Administrator
Then you can switch domains to use PHP-FPM from WHM now.
I am asked for solution for FastCGI, @cPanelMichael I added Full configuration via /usr/local/apache/conf/includes/post_virtualhost_global.conf and all are worked. Does this correct place to add the configuration and will not be overwritten when Apache is recompiled?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,216
463
/usr/local/apache/conf/includes/post_virtualhost_global.conf and all are worked. Does this correct place to add the configuration and will not be overwritten when Apache is recompiled?
Yes, entries added to that file are preserved and not overwritten with updates.

Thank you.
 
  • Like
Reactions: Nirjonadda