Change the PHP version of a domain from the command line
plesk command line change php version | switch domain to php 8.3 plesk | change php handler of a domain | plesk | php | domainCaution: This command changes the system. Understand what it does before you run it.
plesk bin domain --update example.com -php_handler_id plesk-php83-fpmSwitches the PHP version and execution mode of a domain to the given handler. Valid IDs are listed by plesk bin php_handler --list. Useful for bulk changes when old PHP versions reach end of life.
Note: Check first whether the application is compatible with the new PHP version. To roll back, run the same command with the old handler ID.
Open question before approval: Prüfen, ob -php_handler_id bei plesk bin domain --update greift oder ob für Abonnements plesk bin subscription --update nötig ist.
Also searched as
- plesk command line change php version
- switch domain to php 8.3 plesk
- change php handler of a domain