Skip to main content

Configuration on FastCGI to prevent Error

Comments

9 comments

  • cPanelMichael
    Hello, Here's a thread where error messages like that are discussed: Errors after enabling FastCGI Thank you.
    0
  • Nirjonadda
    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.
    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
    But I am still are getting 500 Internal Server Error.
    [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
    0
  • cPanelMichael
    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.
    0
  • Nirjonadda
    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:
    0
  • Anoop P Alias
    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
    0
  • Nirjonadda
    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

    I am already using EA4 ... :)
    0
  • Anoop P Alias
    Then you can switch domains to use PHP-FPM from WHM now.
    0
  • Nirjonadda
    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?
    0
  • cPanelMichael
    /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.
    0

Please sign in to leave a comment.