Symptoms
- WordPress installation under Plesk >Â Domains > example.com > Install WordPress fails with the following error:
PLESK_ERROR: Failed to install WordPress.
Error establishing a database connection. This either means that the username and password information in yourwp-config.php
file is incorrect or we can’t contact the database server atlocalhost:3306
. This could mean your host’s database server is down.
{“err_code”:true,”err_message”:”Error establishing a database connection. This either means that the username and password information in yourwp-config.php
file is incorrect or we canu2019t contact the database server atlocalhost:3306
. This could mean your hostu2019s database server is down.”} - WordPress installation under Plesk > Domains > example.com > Applications fails with the following error:
PLESK_ERROR: Exception: Non-zero exit status returned by script.
file: /usr/share/aps_php/aps_php.php -
LSPHP is selected as a PHP handler under Plesk >Â Domains > example.com > PHP Settings:
- mod_lsapi is used for managing LSPHP:
# apachectl -M | grep lsapi
lsapi_module (shared)
Cause
Currently, Plesk does not support mod_lsapi
.
Resolution
As a workaround, set PHP Handlers provided by Plesk under Domains > example.com > PHP Settings as described in the article How to change PHP settings/version for a domain in Plesk?Â
Note: if PHP Selector is used, check the article Why does phpinfo page show wrong information in CloudLinux when PHP Selector is used?
Contact CloudLinux support for further assistance regarding LSPHP