Saturday, November 25, 2017

How to reset the admin password for ISPConfig 3

If you have the root login for that server, then its easy to find MySQL password, you can find that information a ISPConfig 3 config file.
cat /usr/local/ispconfig/server/lib/mysql_clientdb.conf
<?php
$clientdb_host = ‘localhost’;
$clientdb_user = ‘root’;
$clientdb_password = ‘VerySecurePassword’;
?>
You can now log into you MySQL server with the information extracted from mysql_clientdb.conf:
mysql -h localhost -p dbispconfig
Then run:
UPDATE sys_user SET passwort = md5('YourNewPassword') WHERE username = 'admin';
FLUSH PRIVILEGES;
quit;
You can now log into your ISPConfig 3 web interface with your new admin password.

0 comments: