PHP was disabled on the Windows Plesk node and all the PHP components were removed from the service template and the hosting plan. However the task to create a website fails with the below output:
APS Application Error: 500 Internal Server Error [ApplicationUnknownError] Error occurred during request to WHP API on service node 22.214.171.124: "Unable to create a domain: there are no available PHP handlers."..
The goal is to completely remove PHP support from the Windows Plesk node.
The issue is caused by the Plesk software issue #PPPM-6335 and described in the Plesk KB article.
To work around the issue #PPPM-6335 follow the below steps:
- Leave only one PHP handler, uninstall others
- Make sure all Plesk service plans use the same last PHP handler
Make sure all subscriptions and domains use the same PHP handler - this can be done with the resolution section of the following KB: https://support.plesk.com/hc/en-us/articles/115004205773-PHP-handler-is-displayed-as-corrupted-after-it-was-removed
- Delete the last PHP handler
Go to the command line and run:
plesk bin php_handler --reread
after the above steps the command
plesk bin php_handler --listwill be returning the only one broken handler (the last deleted). In fact, this handler will not exist on the file system.
- Try to create a website in WebHosting Plesk subscription