Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

nginx+php-fpm change to ondemand mode

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
cybaster85
Posts: 13
Joined: Sat Feb 13, 2016 11:03 am

nginx+php-fpm change to ondemand mode
  • Quote

Post by cybaster85 » Wed Feb 17, 2016 11:58 pm

Dear Everyone

i was previously using kloxo-mr and all the while using php-fpm onemand instead of dynamic mode to save some ram

however, i notice there are several php.fpm.conf in vestacp, which is the one i should edit to apply ondemand to all domain and user?

i found them at /usr/local/vestacp/conf/fpm.d/php-fpm.conf and defatut.conf and /etc/php-fpm/php-fpm.conf.d/*.conf

appreciate if any help provided
Top

Aldoseri
Posts: 14
Joined: Fri Nov 25, 2016 12:08 pm

Re: nginx+php-fpm change to ondemand mode
  • Quote

Post by Aldoseri » Thu Dec 01, 2016 5:21 pm

For existing servers or domains edit all files in the pool.d directory including www

/etc/php5/fpm/pool.d/domain.tld.conf

also add this: pm.process_idle_timeout = 10s

- Then restart php5-fpm and nginx servers.

to have this as a default for new domains, edit these 2 files

1- /usr/local/vesta/data/templates/web/php-fpm/default.tpl
2- /usr/local/vesta/data/templates/web/php-fpm/socket.tpl

don't forget pm.process_idle_timeout = 10s

Restart php-fpm and nginx
Top


Post Reply
  • Print view

2 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password