mod_php4 on FreeBSD ( PORT ) w/ PostgreSQL support...?

Superwormy

Golden Member
Feb 7, 2001
1,637
0
0
Can someone give me a quick run-down of how to install mod_php4 ( for Apache 1.3 ) on FreeBSD 5.0 WITH POSTGRESQL SUPPORT!?!

I can't seem to get it working...

I have Apache installed and working, and MySQL... and I THINK PostgreSQL, although I have no idea how to test it...


THANks!
 

chsh1ca

Golden Member
Feb 17, 2003
1,179
0
0
Well, if you've got a compiler, I would suggest you compile your own php, including postgresql by using --with-pgsql=/path/to/postgres as an arg to configure.

As for testing postgres, look for a binary called 'pgsql' or 'psql' (working from memory), and run it passing --help and look at the various options. It should give you a really good idea as to how you can connect to the DB and make sure everything works.