PleskFatalException: Unable to connect to database: get_admin_password() failed

Created:

2016-11-16 12:56:13 UTC

Modified:

2017-04-24 11:31:01 UTC

0

Was this article helpful?


Have more questions?

Submit a request

PleskFatalException: Unable to connect to database: get_admin_password() failed

Applicable to:

  • Plesk for Linux

Symptoms

When opening Plesk interface in browser, it shows the following error:

ERROR: PleskFatalException: Unable to connect to database: get_admin_password() failed: file_get_contents() failed: file_get_contents() failed: date_default_timezone_get(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Tokyo' for 'JST/9.0/no DST' instead (auth.php:142)

Cause

Wrong permissions on Plesk internal file '/etc/psa/.psa.shadow'

Resolution

Make sure that permissions and ownership for the mentioned file are as follows:

# ll /etc/psa/.psa.shadow
-rw------- 1 psaadm psaadm 62 Jan 29 23:41 /etc/psa/.psa.shadow
Have more questions? Submit a request
Please sign in to leave a comment.