Symptoms
-
While browsing the WordPress domain a blank page is return.
-
The scan of subscription
example.com
for WordPress instances returns:Scanning for WordPress instances was performed with errors:
Subscription "example.com": Broken WordPress instance was found in '/var/www/vhost/example.com' -
The following error could be found at
/var/log/plesk/panel.log
ERR [extension/wp-toolkit] Unable to fetch WordPress database name and user: Error establishing a database connection. This means that the username or password information in the `wp-config.php` file is not correct or that the database server can not be contacted with` 192.0.2.2 `. This may mean that the hosting provider's database server is not active.
{"err_code": true, "err_message": "Error establishing a database connection .This means that the username or password information in the` wp-config.php` file is incorrect or not You can contact the database server at `192.0.2.2 ` which may mean that the hosting provider's database server is not active."} -
The following error could be found at the domain error log
/var/www/vhost/example.com/logs/error_log
:[proxy_fcgi:error] (70007)The timeout specified has expired: [client 203.0.113.2:44488] AH01075: Error dispatching request to:
Cause
Incorrect database connection information at the wp-config.php
file.
Resolution
-
Go to Domains > example.com > File Manager and open the wp-config.php file.
-
Correct the database user and/or password while verifying that the database connection is set as below:
define('DB_HOST', 'localhost:3306');
-
Go to Domains > example.com > WordPress and click Refresh to scan the instance again.