• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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