To reset the admin password for ClusterControl UI, please run the PHP script password-reset.php5
or password-reset.php7
located in /var/www/html/clustercontrol/app/tools/
. The script accepts one argument, email address, or username of the user that you would like to reset. The password will be reset to ‘admin’, using the default hash and salt value. Then, the user has to manually change the password to something more secure under User Management.
To verify your PHP version, simply use the following command:
$ php --version
PHP 5.4.16 (cli) (built: Oct 30 2018 19:30:51)
Navigate to the tools
directory:
$ cd /var/www/html/clustercontrol/app/tools/
And run the password reset script based on the running PHP version:
$ php -e password-reset.php5 {email address/username} # for PHP 5
$ php -e password-reset.php7 {email address/username} # for PHP 7 and later