Plesk for Windows
Plesk for Linux
kb: bug
ABT: Group A
Applicable to:
- Plesk for Linux
- Plesk for Windows
Symptoms
-
After PHP handler was uninstalled, it is displayed as a corrupted in Tools & Settings > PHP Settings :
-
Website assigned to the removed handler does not have PHP Settings button in Domains > example.com;
- Removed PHP version is still displayed in Service Plan > Service plan name > PHP Settings;
Cause
The issue is caused by bug with ID PPPM-7677, which will be fixed in the future updates.
Resolution
Until the fix is released, a workaround can be applied:
-
Connect to the server via SSH/RDP;
- For both Plesk Windows and Linux use below command and follow wizard to repair PHP handler for domains and service plans.
CONFIG_TEXT: plesk repair web -php-handlers
Comments
5 comments
This error even occurs when a service plan add-on includes this PHP handler even though PHP is not enabled for this add-on.
@b_p, hello!
Indeed, I was able to reproduce the same issue on my test environment. The article has been updated with additional information. Thank you very much for bringing our attention to that!
If above tests don't show much....
Check at "Tools & Settings > Restricted Mode Settings >PHP Settings".
Change to another PHP Hander and reread handlers:
/opt/psa/admin/bin/php_handlers_control --reread
Does this bug also affect service plans? Because I removed all the php versions from a windows server and saw the following in service plans, on "PHP settings tab":
Here you can specify per-subscription PHP settings that override the settings defined by the server-wide php.ini file. This may be useful, for example, when you want to limit the system resources consumption by customers' PHP scripts. Customers (if allowed) can override this PHP configuration by their own per-domain configuration. When you set a parameter to the Default value, PHP will use the parameter's value from the server-wide PHP configuration. Note that the following placeholders are supported: {DOCROOT} and {WEBSPACEROOT} stand for the document root directory of a domain and a root directory of a subscription which gets custom PHP configuration; {TMP} stands for the directory which stores temporary files.
Unable to retrieve PHP settings because this handler is corrupted.
Hello Pdiotis
Yes, that's correct. Service plans are affected also.
Please sign in to leave a comment.