Postgres Installation Error reading file postgresql.conf

postgresql-9.2

Solution

I recommend you to try following, it worked for me:

Make sure that the user that is logged in to the server has full control permissions for the postgres folder and it's sub-folders.

Run:

initdb -D <your new data folder>

and then:

pg_ctl -D <your new data folder> -l logfile start

If the problem continues, and postgres is installed under "Program Files", or the installation path contains a space character, try using a relative path for the data folder argument of pg_ctl. Such as: "..\data"

Problem

I have Windows Server 2003 machine on which I tried to install Postgres 9.2. At the end of the installation it pops a warning saying Problem running post-install step. Installation may not complete correctly. Error reading file C:\Program Files\PostgreSQL\9.2\data\postgresql.conf I checked for the file `postgresql.conf` in `C:\Program Files\PostgreSQL\9.2\data` and found that it does not exist. I also found that there is not much under the data folder except for `pg_log` folder which is also empty. Any ideas on what I may be doing wrong?

Original source