The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Configuration on FastCGI to prevent Error

Discussion in 'EasyApache' started by Nirjonadda, Jul 20, 2017.

Tags:
  1. Nirjonadda

    Nirjonadda Well-Known Member

    Joined:
    May 8, 2013
    Messages:
    355
    Likes Received:
    10
    Trophy Points:
    18
    cPanel Access Level:
    Website Owner
    Please let me know that how to configuration on FastCGI to prevent error?

    /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/
    
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,167
    Likes Received:
    1,295
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
  3. Nirjonadda

    Nirjonadda Well-Known Member

    Joined:
    May 8, 2013
    Messages:
    355
    Likes Received:
    10
    Trophy Points:
    18
    cPanel Access Level:
    Website Owner

    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
    
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,167
    Likes Received:
    1,295
    Trophy Points:
    363
    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.
     
  5. Nirjonadda

    Nirjonadda Well-Known Member

    Joined:
    May 8, 2013
    Messages:
    355
    Likes Received:
    10
    Trophy Points:
    18
    cPanel Access Level:
    Website Owner
    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?
     
  6. Anoop P Alias

    Anoop P Alias Well-Known Member

    Joined:
    Mar 31, 2015
    Messages:
    65
    Likes Received:
    6
    Trophy Points:
    8
    Location:
    Kochi,Kerala,India
    cPanel Access Level:
    Root Administrator
    I think it's better to upgrade to EA4 and use php-fpm using mod_proxy_fcgi instead of mod_fcgid. It's more performant and fewer troubles too
     
  7. Nirjonadda

    Nirjonadda Well-Known Member

    Joined:
    May 8, 2013
    Messages:
    355
    Likes Received:
    10
    Trophy Points:
    18
    cPanel Access Level:
    Website Owner

    I am already using EA4 ... :)
     
  8. Anoop P Alias

    Anoop P Alias Well-Known Member

    Joined:
    Mar 31, 2015
    Messages:
    65
    Likes Received:
    6
    Trophy Points:
    8
    Location:
    Kochi,Kerala,India
    cPanel Access Level:
    Root Administrator
    Then you can switch domains to use PHP-FPM from WHM now.
     
  9. Nirjonadda

    Nirjonadda Well-Known Member

    Joined:
    May 8, 2013
    Messages:
    355
    Likes Received:
    10
    Trophy Points:
    18
    cPanel Access Level:
    Website Owner
    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?
     
  10. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,167
    Likes Received:
    1,295
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Yes, entries added to that file are preserved and not overwritten with updates.

    Thank you.
     
    Nirjonadda likes this.
Loading...

Share This Page