Plesk Onyx 17.8 for Linux
kb: fixed
kb: bug
ABT: Group A
Applicable to:
- Plesk Onyx 17.8 for Linux
Symptoms
-
PHP handler cannot be changed when NGINX service is stopped or not installed.
-
In Plesk, in Domains > example.com > PHP Settings the checkbox PHP support is disabled and grayed-out with the following message:
CONFIG_TEXT: PHP support cannot be enabled because current hosting configuration does not include any PHP versions available for this domain.
Unable to retrieve PHP settings because this handler is corrupted. -
Current PHP version is shown in Domains > example.com under PHP Settings:
Cause
Plesk bug with ID #PPPM-9016 fixed in:
- Plesk Obsidian 12 March 2019 (fixed as PPP-37847, Linux)
- Plesk Onyx 17.8 06 March 2019 (Linux)
Resolution
For Plesk Onyx 17.8, install the latest Plesk micro-updates.
For Plesk Onyx 17.0 and 17.5, consider upgrading to the latest Plesk version.
Comments
27 comments
I have just installed PHP7.3 via plesk toolbox. All domains cannot be administrated in PHP settings with this error, the resolution does not fix the problem.
Problem is reproducible on multiple servers.
Hello @Mathias,
I have reproduced the issue from this article in a test environment (Plesk 17.8 + CentOS 7) and checked that the workaround works as expected.
From your description, I see that the issue appears after PHP 7.3 installation, could you, please, specify steps to reproduce the issue in more details?
Also, I can suggest submitting a request to Plesk support.
Hello Ivan,
I have applied following steps
After the installation has finished I moved back to standard admin backend and I cannot set / change the php settings in the admin backend.
The console method works to set the php handler. But the frontend does still not work. I activated nginx and then the administration backend works. However I cannot run my sites with nginx because of mod_rewrite usage (nginx thinks we have static files which we don't have). If I deactivate nginx again, the administration backend does not work again.
@Mathias,
Thank you very much for the clarification. Judging by the symptoms it is indeed bug #PPPM-9016 described in this article.
The bug is already fixed in preview Plesk version and will be available in next Plesk Major release.
Until this moment, please, use one of the listed workarounds: changing PHP settings via CLI or temporary enabling nginx.
Hello,
this Resolution do not work. After stoppng of ngnix i got again "Unable to retrieve PHP settings because this handler is corrupted."
When will come the next plesk update with fix of it?
Thanks!
Hello @Michael M.,
Plesk Development is investigating this with the highest priority.
The fix is expected this week, as soon as possible.
Oh perfect! I am new at Plesk, i thought in 2-6 Months. But if this week i'll be wating)
Thanks!
nothing works properly anymore
# plesk bin subscription -u domain -php_handler_id plesk-php72-fpm
PHP handler id cannot be specified because PHP support is not enabled
course is activated
Hello @Gjimi,
Thank you for letting us know about that.
We've updated the command adding the flag "-php true", this should be enough to enable and change PHP handler at the same time.
and you can not install nginx either. disaster!
Error by install
Installation will not continue
The execution of apg-get failed with the following message: (Translated from German)
Reading package lists...
Building dependency tree...
Reading state information...
is there a quick fix? at least that it is possible to install NGINX or anything?
Is there anything I can do other than revert to a backup? I am unable to change the PHP version for any of my domains as the "PHP Support" checkbox is not checkable. I also get this message is the PHP area of a domain "Unable to retrieve PHP settings because this handler is corrupted."
When trying to install NGINX via SSH I get this message
@Gjimi
@Larry Tinnon Jr.,
Hello! Plesk Onyx 17.8 Update #44 with the fix has been released.
You need to install the latest Plesk update to get rid of the issue.
Hello,
please explain how can i udpdate it to #44?
my is Product: Plesk Onyx 17.8.11 Update #42 , last updated at Mar 6, 2019 02:24 AM
Hi Michael M.!
Usually, Plesk updates are installed automatically.
They can be installed manually using the instructions from the article How to install Plesk updates
Hi,
update comonents are not available here
So how could i make it?
Thanks!
Hi Taras,
same problem here!!! No chance to activate PHP on different Domains.
I tried to update via command-line. But i get the following message
"You already have the latest version of product(s) and all the selected components
installed. Installation will not continue."
In Onyx at start i get:
"Plesk Onyx
Version 17.8.11 Update #42, zuletzt aktualisiert: 6. März 2019 13:27:27"
So, no chance to get #44 to work.
Manuell in Onyx also no chance to get the update #44
Thanks in advance
Swen Braunreuter
Hello @Michael M and @Swen
Via GUI update becomes available not simultaneously for all Plesk installations. If it is still not available, you may install update right now via CLI, using the following command:
# plesk installer update
@Ivan: The update solved the problem on all servers. Working as expected again. Thank you
Hi Ivan,
CLI was my first try... see my post above!
CLI still tell me:
"You already have the latest version of product(s) and all the selected components
installed. Installation will not continue."
Swen
Updated on CLI with "plesk installer update" and afterworth enabled NGINX via the webinterface.
However this process seems to be stalling. (see screenshot below)
Well though the updates solves PHP being selectable again (and not being displayed as corrupt) there is a new issue.
The selected PHP version is not being displayed in the customer's Plesk interface. And also it looks like it's disabled for the customers (on all servers). I have filled a follow-up in my original ticket (Ivan knows).
Thank, Ivan!
I have updated over CLI to 44 Release.
Now the problem is solved - php settings works!
Thanks for fast reaction!
@Swen, there is a chance then your server configured to use a mirror that doesn't have MU 44 enabled, please check if you have anything in the below file:
cat /root/.autoinstallerrc
@Ronald, after installing Nginx Plesk should activate it, it may take time depending on # of domains. I recommend reviewing the list of processes running on the server with the below command to see what exactly happens: ps -e f ww
@Michel yes, looks weird a bit, we are in touch through ticket with you currently :) Will share solution as soon as we finish the investigation.
Hi Anton,
thanks for your reply. Overnight, Plesk automatically did the update. So everything runs as it should!
Thank you for your help.
Best regards
Swen :)
Settings for PHP are back for an affected domain, however PHP does not work on the client side. index.php is being downloaded.
@Thomas, that might happen in case PHP support disabled for the domain. Under Websites & Domains > Hosting settings or Websites & Domains > PHP Settings make sure there is a checkbox active for the "PHP Support" option.
Please sign in to leave a comment.