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!

PHP-FPM configuration for shared hosting

Discussion in 'Workarounds and Optimization' started by filip212, Sep 7, 2017.

Tags:
  1. filip212

    filip212 Member

    Joined:
    Aug 22, 2017
    Messages:
    19
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Slovakia
    cPanel Access Level:
    Root Administrator
    Hello,
    I have server with 50GB of ram and 10 CPUs.
    My configuration of PHP-FPM is:
    pm : ondemand
    pm_max_children : { name: 'pm.max_children', value: 15 }
    pm_max_requests : { name: 'pm.max_requests', value: 500 }
    pm_max_spare_servers : { name: 'pm.max_spare_servers', value: 10 }
    pm_min_spare_servers : { name: 'pm.min_spare_servers', value: 1 }
    pm_process_idle_timeout : { name: 'pm.process_idle_timeout', value: 30 }

    Is this configuration Optimal? Can i get better performance with editting or adding somethink here?
    Requests are per children or total?
     
  2. sysdop

    sysdop Member

    Joined:
    Sep 10, 2017
    Messages:
    18
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    International
    cPanel Access Level:
    Root Administrator
    @filip212 The configuration as it is I find it excellent. I would recommend opting to optimize your php.ini and see what other options you should activate through Easyapache to get better performance. The use of memcached is a good option if the websites you host are based on Wordpress and Joomla for example.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,367
    Likes Received:
    1,857
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

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