• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

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