• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Resolved PHP-FPM change static to ondemand

moswak

Regular Pleskian
Hi,

in last Update this bug was fixed
"The pm PHP-FPM directive of a domain created under a default service plan took the static value instead of default ondemand"

how i change the directive of all existing domains from static zu ondemand ?
 
Create file, ppp, for example, with following content:

# cat ppp
pm = ondemand


Then run following command:

# for i in `mysql -uadmin -p\`cat /etc/psa/.psa.shadow\` psa -Ns -e "select name from domains"`; do /usr/local/psa/bin/subscription_settings --update-php-settings $i -settings ppp; done
 
Thanks IgorG

If one adds the max_children = 50 to it, this will also change....

# cat ppp
pm.max_children = 50
pm = ondemand
 
I did something similar to disable pm.static on locked subscriptions.
Code:
cat /tmp/staticpm
pm = ondemand

while read -r subscription; do echo $subscription; plesk bin subscription_settings --update-php-settings $subscription -settings /tmp/staticpm; done < <(plesk bin php_handler --get-usage -id plesk-php71-fpm|awk 'FNR > 1 {print $2}')

Do this for each enabled php-fpm handler id you find in:
Code:
plesk bin php_handler --list
 
I'm getting an annoyed customer that has its site ruined from time to time because "short_open_tag" is set to "off" by something Plesk does.
This happened again this week.
I did some tests, but it seems this command had nothing to do with it, but I do suspect this update.

We should be able to rely on those settings to stick.
I already created a ticket regarding that setting. It is also getting lost on a restore of a backup and a migration.

Maybe other settings are getting reset too, but this one becomes obvious for some sites we host. So if this is investigated then check if it involves other settings.
 
Back
Top