Following human error in my password manager app, I’m no longer able to login to the administrator account for my Icinga Web 2 interface (lost password). This is also the only Icinga Web user account I have.
Since my web interface uses the icingaweb2 database for authentication, I’m trying to reset the admin password directly in MySQL using the following recommendation from this post:
Execute the commands on the machine with icingaweb2, php should be installed there.
Probably, you have to use the full path to php, e.g. : /usr/bin/php
I changed to the directory php is located (usr/bin/php) and tried to run php -r 'echo password_hash("yourtopsecretpassword", PASSWORD_DEFAULT);' but receive the same error.