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.

FCGI best settings for optimal performance

Discussion in 'Workarounds and Optimization' started by Gene Steinberg, Apr 25, 2011.

  1. Gene Steinberg

    Gene Steinberg Well-Known Member

    Joined:
    May 26, 2007
    Messages:
    157
    Likes Received:
    1
    Trophy Points:
    18
    Since I run FCGI, can you suggest how to "tweak settings," in a way that, for example, a Xeon-based server (two four cores) with 16GB RAM would perform best?
     
  2. Massoud

    Massoud Active Member

    Joined:
    Feb 20, 2011
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    This is my question too, I get Error 500 when I have around 50 visitor at a same time while FCGI is selected I do not have this problem in dso, I have only one domain on My server and I have 2GHz CPU and 4GB RAM,

    I found on the web that this setting will tune the FCGI
    IdleTimeout 3600
    ProcessLifeTime 7200
    # MaxProcessCount 1000
    DefaultMinClassProcessCount 3
    DefaultMaxClassProcessCount 100
    IPCConnectTimeout 8
    IPCCommTimeout 360
    BusyTimeout 300

    But I do not know where should I set them.

    Thank you for any sort of advice
     
  3. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    You could add the entries to /usr/local/apache/conf/php.conf file, which contains the other FCGI directives. If you edit this file, you'll have to ensure the file is not replaced during EasyApache update. You could use a script at /scripts/posteasyapache to simply replace any copy cPanel adds with your own version.

    Please note that any time you run either /usr/local/cpanel/bin/rebuild_phpconf or WHM > Apache Configuration > PHP and SuExec Configuration area, you'll be replacing php.conf file with the cPanel version.
     
  4. Gene Steinberg

    Gene Steinberg Well-Known Member

    Joined:
    May 26, 2007
    Messages:
    157
    Likes Received:
    1
    Trophy Points:
    18
    Any thoughts on optimizing for a dual quad-core Xeon 5520 with 16GB RAM?

    Peace,
    Gene
     
  5. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    I don't have any suggestions as I don't have sufficient expertise in larger activity machines for FCGI settings. It would be preferable to have someone who is doing FCGI hosting on an active machine respond to optimal settings for that environment.
     
  6. Gene Steinberg

    Gene Steinberg Well-Known Member

    Joined:
    May 26, 2007
    Messages:
    157
    Likes Received:
    1
    Trophy Points:
    18
    And maybe a script one could run after an EasyApache update, so the settings aren't lost.

    Peace,
    Gene
     
  7. Massoud

    Massoud Active Member

    Joined:
    Feb 20, 2011
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    What do you recommend for a large website, I have VPS with 4GB RAM and 2GHz CPU but I always have cpu usage problem, I have only ONE domain on my VPS and I currently use DSO (for PHP) + Nginx (for static Contents) and found dso has better performance but i do not have FTP access because of permission problem. in addition dso behavior is something wired sometime I have 100 CPU usage with few request.

    with FCGI and SuPHP the load is extremely high, I want to know what the heavy traffic website do and which web server they choose, Perhaps I should think about LiteSpeed or Something.
     
  8. ikillbill

    ikillbill Well-Known Member

    Joined:
    Feb 18, 2008
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    16
  9. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    You could add the settings to that file if you prefer.
     
Loading...

Share This Page