Results 1 to 2 of 2

Thread: Tuning FASTCGI / mod_fcgid settings from cPanel

  1. #1
    Registered Member
    Join Date
    Mar 2012
    Posts
    46
    cPanel Access Level

    Website Owner

    Default Tuning FASTCGI / mod_fcgid settings from cPanel

    I recently changed to FAST CGI using the Apache module:
    Code:
    # This file was automatically generated by the Cpanel PHP Configuration system
    # ...
    
    # Fastcgi configuration for PHP5
    LoadModule fcgid_module modules/mod_fcgid.so
    MaxRequestsPerProcess 500
    AddHandler fcgid-script .php5 .php4 .php .php3 .php2 .phtml
    FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php
    ...
    FCGIWrapper ...
    # End of autogenerated PHP configuration.
    I get these errors now:
    Code:
    [warn] mod_fcgid: process 1234 graceful kill fail, sending SIGKILL
    [warn] [client x.x.x.x] mod_fcgid: read data timeout in 40 seconds
    [error] [client x.x.x.x] Premature end of script headers: page1.php
    [warn] mod_fcgid: process 1446 graceful kill fail, sending SIGKILL
    [warn] mod_fcgid: process 1447 graceful kill fail, sending SIGKILL
    [warn] [client x.x.x.x] mod_fcgid: read data timeout in 40 seconds
    [error] [client x.x.x.x] Premature end of script headers: page2.php
    [warn] mod_fcgid: process 1449 graceful kill fail, sending SIGKILL
    [warn] [client x.x.x.x] mod_fcgid: read data timeout in 40 seconds
    [error] [client x.x.x.x] Premature end of script headers: page3.php
    [warn] mod_fcgid: process 1451 graceful kill fail, sending SIGKILL
    Those often come in quick succession (about 50-100 of them inside 30-60 seconds)
    Even if I restart apache, the situation repeats after about 30-45 minutes.

    Sorry for dumb question, but using CPanel interface, where do I put the tuning parameters - PHP_FCGI_MAX_REQUESTS and PHP_FCGI_CHILDREN ?
    I have so far been unable to spot the option in Apache Configuration or PHP config sections.
    I increased the php.ini memory_limit to 384M (from 256M, where it was for a long time)

    Any other PHP/Apache tuning to be performed if this is a load issue?

    TIA,
    Dave

  2. #2
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,611
    cPanel Access Level

    Root Administrator

    Default Re: Tuning FASTCGI / mod_fcgid settings from cPanel

    You can add FCGI settings for those directives in /usr/local/apache/conf/includes/post_virtualhost_global.conf file. Once you've added the directives, please ensure to restart Apache.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

Similar Threads

  1. Question about mod_fcgid FastCgi
    By ITGabs in forum General Discussion
    Replies: 2
    Last Post: 10-14-2013, 08:48 AM
  2. mod_fcgid: error reading data from FastCGI server
    By imploder303 in forum General Discussion
    Replies: 14
    Last Post: 01-30-2013, 09:18 PM
  3. Replies: 0
    Last Post: 03-04-2012, 05:56 PM
  4. FastCGI (mod_fcgid) issue with cPanel
    By 9xlinux in forum General Discussion
    Replies: 4
    Last Post: 12-20-2010, 09:47 PM

Tags for this Thread

bargain