[FreeBSD] PostgreSQL 8.0 detection

Escaflowne

Active Member
May 5, 2004
40
0
156
PL
Hello!
I installed PostgreSQL 8.0 (FreeBSD) from ports into /d3. What do I have to do "connect" PostgreSQL with WHM? Tried running /scripts/installpostgres but all I got was:
Please install postgres from ports
If you are using bsd packages you can do this as well:

/scripts/installpkg postgresql
su -l pgsql -c initdb
/usr/local/etc/rc.d/010.pgsql.sh start
/scripts/makecpphp (freebsd 5.x+ only)
 

cyexx

Well-Known Member
Sep 3, 2004
70
0
156
the script is seeing you are running FreeBSD and had givin you the commands to run in order to setup and build postgres and also to link it into whm and start it
 

Escaflowne

Active Member
May 5, 2004
40
0
156
PL
/scripts/installpkg postgresql
This installs PostgreSQL from a package

su -l pgsql -c initdb
This initializes PostgreSQL

/usr/local/etc/rc.d/010.pgsql.sh start
This starts PostgreSQL

/scripts/makecpphp (freebsd 5.x+ only)
This compiles PHP.

Like I said before, I have PostgreSQL already installed. PHP too (from CPanel installation).

UPDATE: Seems that WHM automaticly detects PostgreSQL. But... Only when it's installed in the default location (/usr/local). If PostgreSQL has been installed somewhere else... WHM doesn't see it.
 
Last edited: