PHP support cannot be enabled for one domain in Plesk when nginx service is stopped

Follow

Comments

27 comments

  • Avatar
    Mathias Bank

    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.

    0
    Comment actions Permalink
  • Avatar
    Ivan Postnikov

    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.

    -1
    Comment actions Permalink
  • Avatar
    Mathias Bank

    Hello Ivan,

     

    I have applied following steps

    • login to plesk using admin login
    • Tools and Settings (German version: Tools & Einstellungen)
    • Plesk Update & Upgrades => Plesk Installer
    • Add Components
    • Web hosting -> PHP interpreter versions -> activated PHP 7.3
    • Continue

    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.

    1
    Comment actions Permalink
  • Avatar
    Ivan Postnikov

    @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.

    0
    Comment actions Permalink
  • Avatar
    Michael S.

    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!

    0
    Comment actions Permalink
  • Avatar
    Ivan Postnikov

    Hello @Michael M.,

    Plesk Development is investigating this with the highest priority.

    The fix is expected this week, as soon as possible.

    0
    Comment actions Permalink
  • Avatar
    Michael S.

    Oh perfect! I am new at Plesk, i thought in 2-6 Months. But if this week i'll be wating)

    Thanks!

    0
    Comment actions Permalink
  • Avatar
    Gjimi

    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

    0
    Comment actions Permalink
  • Avatar
    Marc Vidal

    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.

    0
    Comment actions Permalink
  • Avatar
    Gjimi

    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...

     

     

    0
    Comment actions Permalink
  • Avatar
    Gjimi

    is there a quick fix? at least that it is possible to install NGINX or anything?

    0
    Comment actions Permalink
  • Avatar
    Larry Tinnon Jr.

    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

    ERROR: The Yum utility failed to install the required packages.

    Attention! Your software might be inoperable.

    Please contact product technical support.

    exit status 1
    0
    Comment actions Permalink
  • Avatar
    Artyom Baranov

    @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.

    0
    Comment actions Permalink
  • Avatar
    Michael S.

    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

    0
    Comment actions Permalink
  • Avatar
    Taras Ermoshin

    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

    0
    Comment actions Permalink
  • Avatar
    Michael S. (Edited )

    Hi,

    update comonents are not available here 

    So how could i make it?

     

    Thanks!

    0
    Comment actions Permalink
  • Avatar
    Swen Braunreuter (Edited )

    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

    0
    Comment actions Permalink
  • Avatar
    Ivan Postnikov

    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

    1
    Comment actions Permalink
  • Avatar
    Mathias Bank

    @Ivan: The update solved the problem on all servers. Working as expected again. Thank you 

    0
    Comment actions Permalink
  • Avatar
    Swen Braunreuter

    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

    0
    Comment actions Permalink
  • Avatar
    Ronald van der Meer

    Updated on CLI with "plesk installer update" and afterworth enabled NGINX via the webinterface.
    However this process seems to be stalling. (see screenshot below)

    # ps aux | grep psa
    root 18817 0.0 0.2 97596 2492 ? Ss 14:33 0:00 /usr/local/psa/admin/sbin/autoinstaller update


    0
    Comment actions Permalink
  • Avatar
    Michel vd Lingen

    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).

    0
    Comment actions Permalink
  • Avatar
    Michael S.

    Thank, Ivan!

     

    I have updated over CLI to 44 Release.

    Now the problem is solved - php settings works!

    Thanks for fast reaction!

    0
    Comment actions Permalink
  • Avatar
    Anton Maslov

    @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. 

    0
    Comment actions Permalink
  • Avatar
    Swen Braunreuter

    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 :)

    0
    Comment actions Permalink
  • Avatar
    Thomas Berg (Edited )

    Settings for PHP are back for an affected domain, however PHP does not work on the client side. index.php is being downloaded. 

    0
    Comment actions Permalink
  • Avatar
    Anton Maslov

    @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.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request