- Plesk for Windows
- Plesk for Linux
How to change a default PHP version/handler assigned for newly created service plans?
Currently, there is no such functionality in Plesk.
We suggest to create a feature request on Plesk User Voice.
Top-ranked suggestions are likely to be included in next versions of Plesk.
As a workaround create 2 event handlers (for service plans created by administrator and by resellers) which will setup needed PHP version and handler:
- In Plesk go to Tools & Settings > Event Manager and click Add Event Handler:
- Select the event Service plan of administrator created and paste the command below to the Command field:
/usr/local/psa/bin/service_plan -u `MYSQL_PWD=$(cat /etc/psa/.psa.shadow) mysql -u admin psa -Nse " select name from Templates ORDER BY id DESC LIMIT 1;"` -php_handler_id plesk-php70-fastcgi
Instead of plesk-php70-fastcgi the following IDs can be used:
- Create an additional event handler for Service plan of reseller created with the same command.