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

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