I installed Mantis 2.25.7. The script worked fine.
But the system does not let the Administrator on the first login attempt! The standard login/password specified in the documentation ("administrator"/"root") is not accepted.
The administrator account is enabled and the hash matches "root".
Happened! Logged into the system. Everything is working!
Why the standard administrator password was not immediately accepted, I don’t know. But it doesn't matter anymore. Now, after reinstallation, everything is in order.