• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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