Change PHP service maximum sub-processes from cli

SYSTEM INFORMATION
OS type and version rocky linux 9
Webmin version 2.111
Virtualmin version 7.20.2 Pro
Webserver version Apache version 2.4.57
Related packages SUGGESTED

i have a vps with 16gb ram, but is always full…
on virtualmin is installed 70 virtual server.

i check and if i set PHP service maximum sub-processes from 16 to 8, more ram is free…

so can i setup 8 on all virtual server from cli and setup manually from web some virtual server to 16 or 32?

thank you

I run on-demand rather then the default it seems to save alot of memory, you should investigate using that, no client has ever complained.
I ended up settling on this in the template

To use on each server you need to disable and enable (that will then use from template) PHP service on each for so you should be able to do that on cli I would think.

Just a thought.

ok, big thank you.
now i’m search how disable and re enable from cli …

thank you again

i confirm that i setup manually :frowning: all 70 virtual server.
and now i have 30% ram used…
so big thank you

i wait next week to check if works all fine…
thank you

1 Like

You just need to to enable and disable the php on each server, that should set the template.
Still a bit of work.