On a new Virtualmin install, going through the set-up says:
The PostgreSQL host configuration file /var/lib/pgsql/data/pg_hba.conf was not found on your system, indicating that the database has not been initialized yet. Click the button below to setup PostgreSQL.
When I click on initialise it says:
sh: postgresql-setup: command not found
However, PG has already been installed and initialised as I used the /usr/pgsql-9.3/bin/postgresql93-setup initdb command (and when running it again it says Data directory is not empty!.
I think this could be a bug as I can’t use this either (just shows me details of ‘usage’)
virtualmin config-system PostgreSQL
Or if I go to modules and click on the Postgres module it reports the same thing as per the original post so I can’t even check if it has been configured properly.
I created an issue for this too as I believe it is a bug. Here’s my update there:
Ok so the file exists at /var/lib/pgsql/9.3/data/pg_hba.conf and from memory (on my previous installs), I was able to enter that filename manually in the Postgres webmin module page - but that page no longer lets you make any changes since it reports The PostgreSQL host configuration file /var/lib/pgsql/data/pg_hba.conf was not found on your system, indicating that the database has not been initialized yet. Click the button below to setup PostgreSQL.
Can I edit the webmin module file manually via the terminal?