#!/bin/sh
cd /a/work/php/php-5.2.3/
./configure --with-mysql --with-mysqli --with-gd --with-apxs2=/usr/sbin/apxs --without-sqlite --without-pdo-sqlite --with-zlib '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' --enable-mbstring --with-pgsql=/usr/lib '--enable-dbx' 
make
make install
/etc/init.d/httpd restart