One short step is left before the dashboard can open.
Read from /home/elegenso/mainenv/.env. In cPanel, create the database and
user under MySQL Databases, then add the user to the database with
ALL PRIVILEGES. On most cPanel hosts the host is localhost and the
port is 3306.