install postgres from binary distribution (enterprisedb packaged)
install apache2
install php5
tar -xvf php-5.2.6.tar.gz
cd php-5.2.6
./configure --with-pgsql=/Library/PostgreSQL/8.3 --with-apxs2
make
cp libs/libphp5.so /usr/libexec/apache2
cd /usr/sbin
cp httpd httpd.original
lipo httpd -thin i386 -output
apachectl configtest
apachectl graceful
Leave a Reply