When hoam-config.ini file is present, installation fails. If this file is present, then HOAM_DB_PASSWORD
constant is defined at some point before installation script starts (in hoam-init.php). When installation script later creates new database user and modifies hoam-config.ini, it tries to load values from updated hoam-config.ini and re-define these constants (which it obviously can't do as they are constants). As a result, installation script tries to use old values from default hoam-config.ini, or stale values left from previous installation attempt, and cannot access database.
I'm not sure how it would be best to fix that. As a workaround I just deleted hoam-config.ini before running the installation script. Probably a better fix would be to define HOAM_DB_NAME
, HOAM_DB_USER
, HOAM_DB_PASSWORD
, HOAM_DB_SERVER
and HOAM_DB_PORT
as variables, not constants, but that would affect performance, I suppose.
This has been resolved in the most recent release.