PHP Settings section is empty in Plesk

Created:

2017-06-21 03:29:47 UTC

Modified:

2017-08-19 03:11:21 UTC

0

Was this article helpful?


Have more questions?

Submit a request

PHP Settings section is empty in Plesk

Applicable to:

  • Plesk Onyx for Linux
  • Plesk Onyx for Windows

Symptoms

PHP version settings are empty in Domains > example.com > Domains & Settings > PHP Settings :

phpempty.png

Empty settings in phpHandlerSettings table for the handler:

CONFIG_TEXT: mysql> select * from ServiceNodeEnvironment where section like '%phpHandlersSettings%' \G;
...
*************************** 1. row ***************************
serviceNodeId: 1
section: phpHandlersSettings
name: cgi-5.4
value: <?xml version="1.0"?>
<handler><defaultValues/><modules/></handler>
...

The following error may be shown in Plesk > Tools & Settings > PHP Settings > PHP version on Windows:

PLESK_ERROR: phpcfg failed: Component not installed: php5_3 at (phpcfg::getPhpIniPath line 616) at getPhpIni(5.3)(phpcfg::getPhpIni line 703) at execute console command --get-php-ini(vconsoleapp::start line 122) at execute "C:\Program Files (x86)\Plesk\admin\bin\phpcfg" --get-php-ini "--php-version=5.3"(vconsoleapp::run line 139) (Error code 1)

Cause

Plesk database inconsistency. Missing PHP components.

Resolution

  1. Connect to the server using SSH/RDP and create Plesk database backup .
  2. Login to MySQL and create a temporary table with the settings:

    MYSQL_LIN: mysql> create temporary table ttt as select value from ServiceNodeEnvironment where section like '%phpHandlersSettings%' and name='fastcgi-7.1';

  3. Copy the settings:

    MYSQL_LIN: mysql> update ServiceNodeEnvironment set value=(select * from ttt) where section like '%phpHandlersSettings%' and name='fastcgi-5.4';
    Query OK, 1 row affected (0.00 sec)
    Rows matched: 1  Changed: 1  Warnings: 0

For Windows, additionally run Plesk Reconfigurator and select the following options: Repair Plesk installation > Plesk files and folders

Have more questions? Submit a request
Please sign in to leave a comment.