• We value your experience with Plesk during 2026
    Please help us understand which Plesk features made your work easier this year, what is still missing and how AI should help you in Plesk ?
    Take this short 5-minutes survey. Your answers go straight into the Plesk roadmap for 2027.

Error Before Plesk login

Webroy

Regular Pleskian
After a update i get this error:

I cannot login to plesk 10.3 on centos 5.5


ERROR: PleskFatalException
Unable to connect to database: get_admin_password() failed: file_get_contents() failed: Constant PRODUCT_MODE already defined

0: common_func.php3:93
psaerror(string 'Unable to connect to database: get_admin_password() failed: file_get_contents() failed: Constant PRODUCT_MODE already defined')
1: auth.php3:125
ERROR: PleskFatalException
Unable to connect to database: get_admin_password() failed: file_get_contents() failed: Constant PRODUCT_MODE already defined

0: common_func.php3:93
psaerror(string 'Unable to connect to database: get_admin_password() failed: file_get_contents() failed: Constant PRODUCT_MODE already defined')
1: auth.php3:125
 
Make sure that /etc/psa/.psa.shadow file has a valid permissions. Right permissions should be as follows

-rw- 1 psaadm psaadm 5 Feb 26 11:22 /etc/psa/.psa.shadow
 
The files are oke

When i do this i get :

/usr/local/psa/bin/admin --show-password
Unable to connect to database: 1045


I tried to reset the admin password through mysql by doing this:

mysqld stop
/usr/bin/mysqld_safe --skip-grant-tables &

mysql --user=root mysql

update user set Password=PASSWORD('new-password-here') WHERE User='admin';

But no result....
 
Okay i think i have solved this problem:

I did this:

Plesk stop
Mysql stop

/usr/bin/mysqld_safe --skip-grant-tables &

mysql --user=root mysql

update user set Password=PASSWORD('new-password-here') WHERE User='admin';


flush privileges;

mysql start


cd /usr/local/psa/admin/bin/

export PSA_PASSWORD='newpass'

echo $PSA_PASSWORD

./ch_admin_passwd

export PSA_PASSWORD=

/usr/local/psa/bin/admin --show-password

And i can login again
 
Back
Top