• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved ERROR: Web server and PHP 7.2

tkalfaoglu

Silver Pleskian
I am getting an Error 503 and some web sites are not opening today..

[Mon May 25 14:20:07.880378 2020] [proxy:error] [pid 5940:tid 140387440060160] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /var/www/vhosts/system/naturalcrispy.com/php-fpm.sock (*) failed
[Mon May 25 14:20:07.880425 2020] [proxy_fcgi:error] [pid 5940:tid 140387440060160] [client 10.10.0.6:11370] AH01079: failed to make connection to backend: httpd-UDS

I googled and found some plesk support documents that recommended I run this:

# /usr/local/psa/bin/php_settings -u
[2020-05-25 14:34:31.428] ERR [panel] Argument 3 passed to Db_Table_Row_PhpSettings::getConfigurationText() must be of the type string, array given, called in /usr/local/psa/admin/plib/PHostingManager/Apache.php on line 289:
0: /usr/local/psa/admin/plib/Db/Table/Row/PhpSettings.php:59
Db_Table_Row_PhpSettings->getConfigurationText(integer '0', string 'akcanmedikal.com', array, string '/var/www/vhosts/akcanmedikal.com', string '/tmp')
1: /usr/local/psa/admin/plib/PHostingManager/Apache.php:289
PHostingManager_Apache->{closure}(boolean false, boolean true)
2: /usr/local/psa/admin/plib/PHostingManager/Apache.php:311
PHostingManager_Apache->configurePhpSettings(boolean false)
3: /usr/local/psa/admin/plib/PHostingManager/Apache.php:229
PHostingManager_Apache->transactionalUpdate(object of type Transaction_Rollback)
4: /usr/local/psa/admin/plib/Transaction/Rollback.php:19
Transaction_Rollback->commit(array)
5: /usr/local/psa/admin/plib/PHostingManager/Apache.php:174
PHostingManager_Apache->update()
6: /usr/local/psa/admin/plib/api-common/cuPhpSettings.php:49
cuPhpSettings->_updateAllCommand()
7: /usr/local/psa/admin/plib/api-common/cuApp.php:79
cuApp->_callCommandMethod(array)
8: /usr/local/psa/admin/plib/api-common/cuApp.php:73
cuApp->_executeCommand()
9: /usr/local/psa/admin/plib/api-common/cuApp.php:53
cuApp->runFromCliGate()
10: /usr/local/psa/admin/plib/api-common/CuExecutor.php:69
CuExecutor->execUtil(string 'cuPhpSettings', string 'runFromCliGate')
11: /usr/local/psa/admin/plib/api-common/CuExecutor.php:131
CuExecutor->run()
12: /usr/local/psa/admin/plib/api-cli/CliUtilityRunner.php:25
CliUtilityRunner->run()
13: /usr/local/psa/admin/plib/api-cli/CliUtilityRunner.php:34
require_once(string '/usr/local/psa/admin/plib/api-cli/CliUtilityRunner.php')
14: /usr/local/psa/admin/plib/api-cli/php_settings.php:4
ERROR: TypeError: Argument 3 passed to Db_Table_Row_PhpSettings::getConfigurationText() must be of the type string, array given, called in /usr/local/psa/admin/plib/PHostingManager/Apache.php on line 289 (PhpSettings.php:59)
[2020-05-25 14:34:56.662] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/phpinimng' '--type' 'fpm' '--service' 'plesk-php72-fpm' '--poold' '/opt/plesk/php/7.2/etc/php-fpm.d' '--restart'] with exit code [1]
[2020-05-25 14:34:56.971] ERR [panel] Remove PHP-FPM config for afl.haldenbilen.com due to service failure: phpinimng failed: Job for plesk-php72-fpm.service failed because the control process exited with error code. See "systemctl status plesk-php72-fpm.service" and "journalctl -xe" for details.
ERROR:php_fpm:Failed to start plesk-php72-fpm service, pause before retry
Job for plesk-php72-fpm.service failed because the control process exited with error code. See "systemctl status plesk-php72-fpm.service" and "journalctl -xe" for details.
Failed to start plesk-php72-fpm service
[2020-05-25 14:35:19.356] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/phpinimng' '--type' 'fpm' '--virtual-host' 'afl.haldenbilen.com' '--service' 'plesk-php72-fpm' '--poold' '/opt/plesk/php/7.2/etc/php-fpm.d' '--remove'] with exit code [1]
PHP Fatal error: Uncaught PleskUtilException: phpinimng failed: Job for plesk-php72-fpm.service failed because the control process exited with error code. See "systemctl status plesk-php72-fpm.service" and "journalctl -xe" for details.
ERROR:php_fpm:Failed to start plesk-php72-fpm service, pause before retry
Job for plesk-php72-fpm.service failed because the control process exited with error code. See "

etc...

Btw, the akcanmedikal was running PHP 5.6..

What shall I do?
 
Last edited:
BTW, on my system I still have to run:

find /var/www/vhosts/system -name php-fpm.sock -exec chmod 666 {} \;

in a cron job so everything works properly :(
 
I solved most of the problems -- except the above crash of the /usr/local/psa/bin/php_settings -u

The fpm-php was caused by renaming an FTP username..
The user changed the ftp username of their site from xyz to abc.. the web configuration still looked for the original username.
(Perhaps when the system user is changed, a whole search-replace should be done of the conf directory?)

The php_settings is giving this:
# /usr/local/psa/bin/php_settings -u
[2020-05-25 14:50:17.302] ERR [panel] Argument 3 passed to Db_Table_Row_PhpSettings::getConfigurationText() must be of the type string, array given, called in /usr/local/psa/admin/plib/PHostingManager/Apache.php on line 289:
0: /usr/local/psa/admin/plib/Db/Table/Row/PhpSettings.php:59
Db_Table_Row_PhpSettings->getConfigurationText(integer '0', string 'akcanmedikal.com', array, string '/var/www/vhosts/akcanmedikal.com', string '/tmp')
1: /usr/local/psa/admin/plib/PHostingManager/Apache.php:289
PHostingManager_Apache->{closure}(boolean false, boolean true)
2: /usr/local/psa/admin/plib/PHostingManager/Apache.php:311
PHostingManager_Apache->configurePhpSettings(boolean false)
3: /usr/local/psa/admin/plib/PHostingManager/Apache.php:229
PHostingManager_Apache->transactionalUpdate(object of type Transaction_Rollback)
4: /usr/local/psa/admin/plib/Transaction/Rollback.php:19
Transaction_Rollback->commit(array)
5: /usr/local/psa/admin/plib/PHostingManager/Apache.php:174
PHostingManager_Apache->update()
6: /usr/local/psa/admin/plib/api-common/cuPhpSettings.php:49
cuPhpSettings->_updateAllCommand()
7: /usr/local/psa/admin/plib/api-common/cuApp.php:79
cuApp->_callCommandMethod(array)
8: /usr/local/psa/admin/plib/api-common/cuApp.php:73
cuApp->_executeCommand()
9: /usr/local/psa/admin/plib/api-common/cuApp.php:53
cuApp->runFromCliGate()
10: /usr/local/psa/admin/plib/api-common/CuExecutor.php:69
CuExecutor->execUtil(string 'cuPhpSettings', string 'runFromCliGate')
11: /usr/local/psa/admin/plib/api-common/CuExecutor.php:131
CuExecutor->run()
12: /usr/local/psa/admin/plib/api-cli/CliUtilityRunner.php:25
CliUtilityRunner->run()
13: /usr/local/psa/admin/plib/api-cli/CliUtilityRunner.php:34
require_once(string '/usr/local/psa/admin/plib/api-cli/CliUtilityRunner.php')
14: /usr/local/psa/admin/plib/api-cli/php_settings.php:4
ERROR: TypeError: Argument 3 passed to Db_Table_Row_PhpSettings::getConfigurationText() must be of the type string, array given, called in /usr/local/psa/admin/plib/PHostingManager/Apache.php on line 289 (PhpSettings.php:59)

I tried
plesk repair web akcanmedikal.com
but it did not help the php_update issue.. However the web sites work. Including this one :)

-t
 
check:

Many thanks.. It found 78 sites that were affected by the same_ssl problem!
I did the workaround and I already have auto-updating enabled on the server..
 
Back
Top