Plesk

Unable to access Plesk interface: Access denied for user ‘admin’@’localhost’ (using password: NO)

Symptoms

Unable to access Plesk interface with the following error messages:

Server Error
500 PleskExceptionDatabase
DB query failed: SQLSTATE[HY000] [1045] Access denied for user 'admin'@'localhost' (using password: NO)

Cause

Incorrect ownerships are set for the /etc/psa/.psa.shadow file:

# ls -la /etc/psa/.psa.shadow
-rw------- 1 root psaadm 62 Apr 28 19:23 /etc/psa/.psa.shadow

Resolution

  1. Connect to the server via SSH.

  2. Set correct ownerships for the /etc/psa/.psa.shadow file:

    # chown psaadm:psaadm /etc/psa/.psa.shadow

  3. Restart MySQL service:

    # systemctl restart mariadb

Exit mobile version