Article ID: 112888, created on Nov 25, 2011, last review on May 11, 2014

  • Applies to:
  • Plesk for Linux/Unix

Symptoms

When you try to open login screen in your browser for Plesk Panel or SMB you see following error message:
 
Fatal error: Uncaught exception 'Zend_Db_Adapter_Exception' with message 'SQLSTATE[28000] [1045] Access denied for user 'admin'@'localhost' (using password: NO)' in /usr/local/psa/admin/smb/application/externals/Zend/Db/Adapter/Pdo/Abstract.php:143
Stack trace: #0 /usr/local/psa/admin/smb/application/externals/Zend/Db/Adapter/Abstract.php(417): Zend_Db_Adapter_Pdo_Abstract->_connect() 
             #1 /usr/local/psa/admin/smb/application/externals/Zend/Db/Adapter/Pdo/Abstract.php(230): Zend_Db_Adapter_Abstract->query('SELECT 1', Array) 
             #2 /usr/local/psa/admin/smb/application/library/Smb/Application/Abstract.php(91): Zend_Db_Adapter_Pdo_Abstract->query('SELECT 1') 
             #3 /usr/local/psa/admin/smb/application/library/Smb/Application/Web.php(42): Smb_Application_Abstract->_initDbAdapter() 
             #4 /usr/local/psa/admin/smb/application/public/index.php(15): Smb_Application_Web->run() 
             #5 {main} thrown in /usr/local/psa/admin/smb/application/externals/Zend/Db/Adapter/Pdo/Abstract.php on line 143
	
 

Resolution

Pay attention to following section in this error message:
 
'SQLSTATE[28000] [1045] Access denied for user 'admin'@'localhost' (using password: NO)'
 
So password is not being set for admin account when it tries to access database for Plesk Panel or SMB functionality. It can be fixed by following command:
 
/usr/local/psa/bin/init_conf -u -passwd <your passwd>

b4063105f5cd1a0713257c11808c25af 49bd80ecbd43d333682703dec2587b0e 29d1e90fd304f01e6420fbe60f66f838 a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article
Save as PDF