[lug] PHP/Postgres on KRUD 8.0

Michael Deck deckm at cleansoft.com
Wed Jan 7 16:15:08 MST 2004


I'm having a hard time getting PHP/Postgres running on a KRUD 8.0 server. 
The direction I'm heading, based on lots of googling, just feels wrong.

It started out when I downloaded a little PHP app I wanted to put up on my 
server. Turned out I didn't have PHP installed. I grabbed RPMs for PHP via 
up2date php. I had to hack things a bit, creating a 
softlink  /usr/lib/libjpeg.so.62 -> /usr/lib/libjpeg.so.62.0.0. Dunno why. 
That got me to where browsing a .php file didn't show me the source code :)

Then I tried running the little PHP app which interfaces with Postgresql. 
 From the error messages and a bit of googling, it seems that maybe the PHP 
RPMs weren't built --with-pgsql configuration. Installing php-pgsql RPM 
didn't fix it. So now I'm goofing around with making php again from source. 
The ./configure step gave me an error about not being able to find 
libpq-fe.h. So I grabbed postgres-base source but I still can't make it 
find that file even with --with-pgsql=srcdir. I had to edit the configure 
script to find that file, but now it's looking for libpq.so (which doesn't 
exist, but libpq.so.2 does).

PHP/Postgres seems to be pretty common, so there must be an easier way. 
This is a remotely-accessed shared server, so I don't have things like 
CDROM or X. I don't actually know PHP.

Thanks in advance,
   Mike



Michael Deck
Cleanroom Software Engineering, Inc.   




More information about the LUG mailing list