./configure --prefix=/usr/local/php5 --enable-magic-quotes --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql --with-jpeg=/usr/local/php5/ext/mygd/jpeg --with-zlib --with-png --with-gd=/usr/local/php5/ext/mygd --with-freetype-dir=/usr/local/php5/ext/mygd/freetype --disable-libxml --with-mssql=/usr/local/php5/ext/freetds --with-mcrypt=/usr/local/php5/ext/mymcrypt
make
make install
apache无需改动