• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Automatic installation tick "Process PHP by nginx" & "static files directly by nginx"

tanatonaut

New Pleskian
Hi to all!
CL 6.4
PP 11.5
I need that would checkmark "Process PHP by nginx" & "Serve static files directly by nginx" (Sites-and-domains - web-server-settings) were enabled by default.
Anyone know how to do it?
 
I think that there is no possibility to define it in Service Plan.
As possible workaround you can use Event Manager for "Domain created" event with command /usr/local/psa/bin/subscription with corresponding options -nginx-serve-static and -nginx-serve-php
See # /usr/local/psa/bin/subscription --help for details.
 
I think that there is no possibility to define it in Service Plan.
As possible workaround you can use Event Manager for "Domain created" event with command /usr/local/psa/bin/subscription with corresponding options -nginx-serve-static and -nginx-serve-php
See # /usr/local/psa/bin/subscription --help for details.

Maybe possible through the Plesk API enable?
 
Not sure about API, you can check it here http://download1.parallels.com/Plesk/PP11/11.5/Doc/en-US/online/plesk-api-rpc/
But for all domains you can enable it with something like:

# for i in `mysql -uadmin -p\`cat /etc/psa/.psa.shadow\` psa -Ns -e "select name from domains"`; do /usr/local/psa/bin/subscription -u $i -nginx-serve-static true -nginx-serve-static true; done

You can modify SQL select for updating specific subscriptions.
 
Back
Top