• 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!
  • 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_settings just for some domains (list) on commandline

Michael Huber

Basic Pleskian
Hello,

I cannot found a way to apply new php.ini in system/DOMAIN:TLD/conf/

i know /usr/local/psa/bin/php_settings -u
but this apply all domains and I have many many many domains. need to longe time.

i lookung for a way to create a batch wh apply one domain after the next in a list but not all.

is there are no way to apply it like /usr/local/psa/bin/ANY-COMMAND -d=domain1.tld

i do not like to find the domain in UI and klick everytime apply in php setting page.

Thank you
 
Hi Michael Huber,

actually, you are able to see all possible command options, by using the "--help" string in your command for Plesk CLI utilities:

Example:
Code:
/usr/local/psa/bin/php_settings --help
As you can see, there is no other option, but the one you already know:
Code:
Usage: php_settings command [options]

    Available commands:
    --update-all or -u                 Update per-domain PHP settings of all
                                       domains in accordance with the
                                       server-wide php.ini file.
    --help or -h                       Displays this help page.

All Plesk 12.x CLI commands are very well documented at:




If you desire additional features for Plesk, pls. consider to have a look at


... where you are not able to vote for existing feature requests, but you are as well able to create new ones, describing your desires with the additional description of your buisiness case and the explanation for your needs.
In your case, this feature request has already been done ( => Reload PHP-FPM only once with `/usr/local/psa/bin/php_settings -u` (Plesk 12.5) ), with an additional discussion at the forum: => https://talk.plesk.com/threads/usr-...eloads-php-fpm-for-every-subscription.342481/
 
i write, i know this command. but it update all domains. I want just update a single domain using CLI.

solution is: /usr/local/psa/bin/domain --update-php-settings DOMAIN.TLD
 
Back
Top