To configure PHP as a CGI, do everything as you did for making it an Apache module except leave out the --with-apxs= line. This will cause PHP to be compiled as a CGI.
Yes you can have both running at the same time.
Yes as long as you configure in PostgreSQL support then your CGI version will be able to connect to it.