Fixes for PHP config ensure and pgsql import file

Root user does not have a PostgreSQL role by default or access without users credentials. Force use of the trusted postgres user.

Added fix for issue #592 re PHP config file ensure error when no web server selected.