Change PHP version for a site in Plesk Command line

To change PHP version for a site, first find available PHP handlers, this can be done with command

/usr/local/psa/admin/bin/php_handlers_control --list

Plesk Change PHP version

You need to find the id for the PHP handler. For PHP 5.6 fpm, it is “plesk-php56-fpm”.

To change a sites PHP version to PHP 5.6, run

plesk bin domain -u DOMAIN_NAME_HERE -php_handler_id plesk-php56-fpm

Example

Plesk change PHP handler

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *