./configure --prefix=/usr/local/php5 --with-apxs2=/usr/local/apache2/bin/apxs --mandir=/usr/share/man --with-zlib --with-snmp --enable-ucd-snmp-hack --with-libxml-dir --enable-ftp --with-gd --enable-gd-native-ttf --enable-gd-jis-conv --with-freetype-dir --with-jpeg-dir --with-png-dir --with-ttf --enable-dba --enable-dbase --enable-calendar --enable-sockets --enable-sysvsem  --enable-sigchild --enable-roxen-zts --enable-fastcgi --enable-force-cgi-redirect --enable-fpm --with-curl --enable-shmop --enable-mbstring --with-mysql=/usr/local/mysql --with-mysql-sock=/tmp/mysql.sock --with-config-file-path=/usr/local/php5/etc --disable-ipv6 --with-openssl --with-mysqli=/usr/local/mysql/bin/mysql_config --with-iconv-dir=/usr/local --enable-pdo --with-pdo-sqlite --with-pdo-mysql=/usr/local/mysql/bin/mysql_config --with-mcrypt --enable-mbregex --enable-fastcgi --enable-pcntl --enable-sockets --with-ldap --with-ldap-sasl --with-xmlrpc --enable-zip --enable-soap --with-pear --enable-inline-optimization --enable-discard-path --with-curlwrappers --enable-xml --enable-bcmath --with-mhash