Search Engine: Elastic

Article ID: 133274, created on Oct 10, 2018, last review on Oct 10, 2018

  • Applies to:
  • Operations Automation

Symptoms

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 129.168.1.15: "Unable to create a domain: there are no available PHP handlers."..

The goal is to completely remove PHP support from the Windows Plesk node.

Cause

The issue is caused by the Plesk software issue #PPPM-6335 and described in the Plesk KB article.

Resolution

To work around the issue #PPPM-6335 follow the below steps:

  1. Leave only one PHP handler, uninstall others
  2. Make sure all Plesk service plans use the same last PHP handler
  3. 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

  4. Delete the last PHP handler
  5. Go to the command line and run:

    plesk bin php_handler --reread
    

    after the above steps the command plesk bin php_handler --list will be returning the only one broken handler (the last deleted). In fact, this handler will not exist on the file system.

  6. Apply the patch from the KB https://support.plesk.com/hc/en-us/articles/115000168814-Cannot-create-subdomain-there-are-no-available-PHP-handlers

  7. Try to create a website in WebHosting Plesk subscription

5356b422f65bdad1c3e9edca5d74a1ae caea8340e2d186a540518d08602aa065 e12cea1d47a3125d335d68e6d4e15e07

Email subscription for changes to this article
Save as PDF