Okay, after much frustration, cursing, smoking, and being brought almost to the point of beating the laptop to a pulp, everything works.
What needed to be changed was the following.
- php.ini need to be chowned to the user nobody
- need to install the pgsql.so file and uncomment that line in php.ini
- needed to set tcpip_socket to true in postgreSQL.conf
- needed to add an entry for 127.0.0.1 in pg_hba.conf
and then everything works........
P.