bash$ tar xzf php-5.1.tar.gz
bash$ cd php-5.1
bash$ ./configure --with-pdo-odbc=ibm-db2 --enable-cli --disable-cgi \
	--with-apxs2=/usr/sbin/apxs
bash$ make && su -c 'make install' 
bash$ php -m
[PHP Modules]
...
PDO
PDO_ODBC
... 
bash$ vi /etc/init.d/apache2
#!/bin/sh
. /home/dbin2st1/sqllib/db2profile
... rest of script ...  
bash$ su -c "/etc/init.d/apache2 restart"