• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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