Applicable to:
- Plesk Onyx for Linux
Symptoms
-
PHP handler cannot be changed when nginx service is stopped
-
PHP-support is grayed-out with "PHP support cannot be enabled because current hosting configuration does not include any PHP versions available for this domain" in Websites & Domains > Hosting settings
-
Alongside on the main "Websites & Domains" page under "PHP Settings" particular PHP version is selected
- nginx is stopped or removed.
Cause
This is Plesk bug #PPPM-9016 that is planned to be fixed in one of the future product updates.
Resolution
Until a fix becomes available, it is possible to use one of the following workarounds:
Warning: bear in mind that enabling/disabling nginx can take a couple of minutes, during this time period sites will be offline. Proceed with the second workaround in case it is not suitable to have a downtime.
If nginx is installed:
-
Start nginx in Plesk.
Go to Tools & Settings > Services Management > Reverse Proxy Server (nginx) clickicon.
-
Enable nginx proxy mode for the domain:
Go to Domains > example.com > Apache & nginx Settings
in nginx settings section check Proxy mode checkbox -
Stop nginx service in Plesk:
Go to Tools & Settings > Services Management > Reverse Proxy Server (nginx) clickicon
In case nginx is not installed:
- Manage PHP handler via CLI:
# plesk bin subscription -u example.com -php_handler_id plesk-php70-fpm
SUCCESS: Update of domain 'example.com' completed. -
Enable nginx proxy mode for the affected domain via CLI (it will also unlock the possibility to choose the PHP version in GUI):
# plesk bin subscription --update-web-server-settings example.com -nginx-proxy-mode true
Comments
0 comments
Please sign in to leave a comment.