php
/configure PRefix=/home/raid/system/php
withMySQL=/home/raid/system/mysql/
withapxs=/home/raid/system/apache/bin/apxs
withgd withzlib
withfreetypedir=/usr/
withpngdir=/usr/
withjpegdir=/usr/
disableposix
enablememorylimit
enablezendmultibyte
withiconv
enableinlineoptimization
enablemagicquotes
enableftp
php
/configure prefix=/usr/local/php
withapxs=/usr/local/apache/bin/apxs
withiconv=/usr/local
enablembstring
withgd
withjpegdir=/usr/local
withpngdir=/usr/local
withfreetypedir=/usr/local
withttf enablegdnativettf
withzlibdir=/usr
withdom=/usr/local
withmysql=/usr/local
withldap=/usr/local
withcurl=/usr/local
From:http://tw.wingwit.com/Article/program/PHP/201311/21097.html