I was running into errors with the previous ./configure command. I did some searching and found that the zlib library had changed and had to be recompiled if shared.

The PHP configure script now is:

./configure –prefix=/usr/local/php5
–mandir=/usr/share/man
–infodir=/usr/share/info
–sysconfdir=/etc
–with-config-file-path=/etc
–with-zlib
–with-zlib-dir=/usr/zlib
–with-openssl
–without-iconv
–enable-exif
–enable-ftp
–enable-mbstring
–enable-mbregex
–enable-sockets
–with-mysql=/usr/local/mysql
–with-pdo-mysql=/usr/local/mysql
–with-mysqli=/usr/local/mysql/bin/mysql_config
–with-mysql-sock=/tmp/mysql.sock
–with-apxs2=/usr/local/apache2/bin/apxs

Of course this depends on having the new zlib dir in /usr/zlib.