apache
./configure --prefix=/soft/apache --enable-so --enable-rewrite --enable-vhost-alias --enable-dav --with-mpm=worker
./configure \
--prefix=/usr/local/apache2 \
--enable-mods-shared=all \
--enable-rewrite \
--enable-so \
--enable-vhost-alias \
--enable-dav \
--with-mpm=worker \
--enable-speling \
--enable-forward \
--enable-proxy \
--enable-cgi \
--enable-ssl \
--with-ssl=/usr/local/ssl \
php
'./configure' \
'--with-apxs2filter=/usr/local/apache2/bin/apxs' \
'--with-gd=/usr/' \
'--with-mysql=/soft/mysql5' \
'--with-freetype-dir=/usr/' \
'--with-zlib' \
'--enable-mbstring=cn' \
'--with-ttf=/usr/' \
'--with-pdo-mysql=/usr/local/mysql' \
'--with-tsrm-pthreads '
mysql
./configure \
--prefix=/usr/local/mysql \
--without-debug \
--with-extra-charsets=gb2312 \
--with-charset=gb2312 \
--enable-assembler \
--without-isam \
--without-innodb \
--with-pthread \
--enable-thread-safe-client \
--with-client-ldflags=-all-static \
--with-mysqld-ldflags=-all-static