Article ID: 113029, created on Dec 20, 2011, last review on May 3, 2014

  • Applies to:
  • Plesk 10.3 for Linux/Unix

Symptoms

When you try to log in to Parallels Plesk Panel, you see the following error message:

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

Resolution

Use the following workaround:

1. Stop Plesk and MySQL:
# /etc/init.d/psa stop
# /etc/init.d/mysqld stop

2. Reset MySQL password:
# /usr/bin/mysqld_safe --skip-grant-tables &
# mysql --user=root mysql
mysql> update user set Password=PASSWORD('new-password-here') WHERE User='admin';
mysql> flush privileges;

3. Start MySQL and Plesk:
# /etc/init.d/mysqld restart
# /etc/init.d/psa start

4. Set new admin password in Plesk:
# 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

f4ce8084cb23619ef5fe9428ecc388ea a914db3fdc7a53ddcfd1b2db8f5a1b9c 29d1e90fd304f01e6420fbe60f66f838 dd0611b6086474193d9bf78e2b293040 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article
Save as PDF