• 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.

11.5.30: Setting PHP version per website from command line

burnley

Regular Pleskian
Hi,

Just upgraded the first production server from 11.0.9 to 11.5.30 and soon after the upgrade completed I had to go into Plesk panel and start reverting dozens of websites manually to the custom PHP version which I've registered in the command line following http://download1.parallels.com/Ples...inistrator-guide/index.htm?fileName=72042.htm
Switching between the PHP versions from the Panel works fine, but how do I change it from command line? I tried with at least 3 cli tools - domain, site, subscription - but non of them worked. The syntax used was:
$command --update domain.com.au -php_handler_id 5.3-custom
Then I thought I'm perhaps misunderstanding the usage displayed at --help, so went to check the online cli manual. Have a look at the subscription manual page:
http://download1.parallels.com/Ples...e/plesk-unix-cli/index.htm?fileName=37768.htm
The option -php_handler_id isn't even documented in there, even though it appears at --help, is this normal?
How can I use -php_handler_id option from command line?
 
Quick follow-up on this: it works from cli if I change the php_handler_id value in psa.hosting for the given domain from fastcgi to 5.3-custom and run httpdmng --reconfigure-domain. But we know we shuldn't fiddle with the database directly.
 
Hi,

Just upgraded the first production server from 11.0.9 to 11.5.30 and soon after the upgrade completed I had to go into Plesk panel and start reverting dozens of websites manually to the custom PHP version which I've registered in the command line following http://download1.parallels.com/Ples...inistrator-guide/index.htm?fileName=72042.htm
Switching between the PHP versions from the Panel works fine, but how do I change it from command line? I tried with at least 3 cli tools - domain, site, subscription - but non of them worked. The syntax used was:
$command --update domain.com.au -php_handler_id 5.3-custom
Then I thought I'm perhaps misunderstanding the usage displayed at --help, so went to check the online cli manual. Have a look at the subscription manual page:
http://download1.parallels.com/Ples...e/plesk-unix-cli/index.htm?fileName=37768.htm
The option -php_handler_id isn't even documented in there, even though it appears at --help, is this normal?
How can I use -php_handler_id option from command line?

Reported this issue to developers. I assume it wiill be fixed soon.
 
Back
Top