Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Looking for Apache Global Configuration and PHP-FPM Pool Options Suggestions

Discussion in 'Workarounds and Optimization' started by MyRooT, Nov 22, 2018.

  1. MyRooT

    MyRooT Registered

    Jan 16, 2017
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    The most ideal Apache Global Configuration and What should be the PHP-FPM Pool Options?

    Only one website is hosted on the Dedicated server. A very high website traffic. The average number of page views per day is 250,000.

    1. Apache Server MPM: How should the best configuration of prefork Global Configuration be?

    2. In the PHP-FPM Pool Options; What should be the values of
    Max Children?
    Process Idle Timeout? and
    Max Requests?

    Frequent error message from server:

    User:.... PID:19316 PPID:2073 Run Time:81(secs) Memory:674236(kb) RSS:46036(kb) exe:/opt/cpanel/ea-php70/root/usr/sbin/php-fpm cmd:php-fpm: pool ...

    Dedicated Server Features:

    Dell R220
    4x 3.50 GHz Intel® Xeon® E3-1241 v3 (1 Soket)
    16 GB RAM
    2 x 600 GB SAS
    Total processors: 8
    The latest Settings are:

    Apache Server MPM: prefork
    Global Configuration

    The following settings have been saved:
    keepalive: On
    keepalivetimeout: 5
    serverlimit: 5000
    maxclients: 5000
    maxrequestsperchild: 2500
    maxkeepaliverequests: 150
    startservers: 25
    minspareservers: 25
    maxspareservers: 50
    timeout: 150
    PHP-FPM Pool Options:
    System PHP-FPM Status: On
    Max Children: 150
    Process Idle Timeout: 10
    Max Requests: 5000
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hello @MyRooT,

    The following resource is a good place to start since you are using PHP-FPM:

    Tutorial - PHP-FPM Performance Tuning Basics

    Additionally, you may find the discussion on the following thread useful:

    What kind of stack are people using for speed?

    You may also need to consider reaching out to a system administration service provider that specializes in optimization/performance. You can find a list of companies offering system admin services at:

    System Administration Services | cPanel Forums

    Thank you.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice