• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Changing PHP Settings on ALL Domains via CLI ?

yabado

Regular Pleskian
What is the command line method used to go through and set defaults for all domain PHP settings?

I tried this but it did not work.

/usr/local/psa/admin/sbin/httpdmng --reconfigure-all
 
To be more specific, the CLI command would do the same thing as if I went to *each* domains PHP Settings page and clicked Apply.
 
Hello Yabado,
You can find more available domain name management options from CLI with:
Code:
/usr/local/psa/bin/domain --help
 
I ended up going to each of the Service Plans -> PHP Settings, then changing the default PHP version and saving.
Looks like this worked but not 100% sure yet.
 
Turns out that does not work. It does not actually "apply" the default PHP setting at all.
Still looking for a way to "apply" a specific PHP version on all domains if possible.
 
Back
Top