Symptoms
-
When creating a domain, the operation fails with:
PLESK_ERROR: Error: Unable to create a domain: there are no available PHP handlers
-
There are no installed or enabled PHP handlers on the server.
-
Migration of a subscription fails with:
PLESK_ERROR: Failed to perform an action on subscription ‘example.com’: Unable to set physical hosting on subdomain ‘subdomain.example.com’ in subscription ‘example.com’: Command LANG=en_US.UTF-8 ALLOW_WEAK_PASSWORDS=1 PLESK_RESTORE_MODE=1 domain –update subdomain.example.com -webspace-name example.com -hosting true -hst_type phys -ssl false -do-not-apply-skeleton -www-root subdomain.example.com -ignore-nonexistent-options failed with exit code 1:
stdout:
stderr: Unable to create a domain: there are no available PHP handlers
Cause
Product issue:
- #PPPM-6335 “Subdomains can now be created even if no PHP handlers are installed.”
Fixed in:- Plesk Obsidian 12 February 2019 (fixed as PPP-40417, Windows)
Resolution
Workaround
If update is not possible for some reason you may try the following
workaround
As a workaround, do the following:
For Windows server:
- Connect to the server using RDP.
- Download and unpack a custom fix: Availability.zip
- Back up original file by renaming
"%plesk_dir%"adminplibHostingOptionsAvailability.php
file - Place downloaded custom fix to
"%plesk_dir%"adminplibHostingOptions
folder
For Linux server:
- 1. Connect to the server using SSH
- Download a custom fix using the following command:
# https://support.plesk.com/hc/en-us/article_attachments/360010615633/Availability.zip
- Back up original file by renaming
/usr/local/psa/admin/plib/Hosting/Options/Availability.php
:# cp /usr/local/psa/admin/plib/Hosting/Options/Availability.php{,.original}
- Extract the hotfix and place it to
/usr/local/psa/admin/plib/Hosting/Options/
directory:# unzip Availability.zip
# cp Availability.php /usr/local/psa/admin/plib/Hosting/Options/Availability.php