Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-27, 11:56:44

Author Topic: Php-fpm change dynamic to ondemand  (Read 1519 times)

0 Members and 1 Guest are viewing this topic.

Offline cybaster85

  • Junior Member
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Php-fpm change dynamic to ondemand
« on: 2015-12-29, 23:25:01 »
Hi all

I would like to switch php-fpm pool to ondemand process manager to save some RAM with changing to below
pm = ondemand
pm.max_children = 5
pm.process_idle_timeout = 10s
pm.max_requests = 200

i have managed to find each domain php fpm config in /etc/php-fpm.d/

However it got overwritten on every restart, where is the main skeleton conf file?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Php-fpm change dynamic to ondemand
« Reply #1 on: 2015-12-30, 02:06:28 »
Kloxo-MR 7 already use 'ondemand' instead 'dynamic'.

If using Kloxo-MR 6.5, copy php53-fpm-pool.conf.tpl to custom.php53-fpm-pool.conf.tpl inside /home/php-fpm/tpl. After that, modified custom.php53-fpm-pool.conf.tpl and then run 'sh /script/fixphpfpm; sh /script/restart-web'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo
Click Here

Page created in 0.089 seconds with 18 queries.

web stats analysis