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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    38,165
    Likes Received:
    1,371
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page