常见的用于搭建Web服务器的软件有Apache、Perl、PHP、mysql等,其中Perl的编译选项最简单:
sh Configure -des
---------------------------------------
APACHE 的configure
MYSQL的configure
PHP5.2的congifure
APACHE 的configure
./configure --prefix=/usr/local/apache---------------------------------------
--enable-module=so --with-mpm=worker --enable-ssl --enable-deflate
--enable-cern- --enable-expires --enable-headers --enable-vhost-alias
--enable-rewrite --enable-access --enable-auth --enable-include
--enable-log_config --enable-env --enable-setenvif --enable-http
--enable-mime --enable-status --enable-autoindex --enable-asis
--enable-cgi --enable-negotiation --enable-dir --enable-actions
--enable-userdir --enable-alias -enable-mem-cache --enable-cache
--enable-headers --enable-deflate
MYSQL的configure
./configure --prefix=/usr/local/mysql --with-extra-charsets=all --enable-thread-safe-client---------------------------------------
PHP5.2的congifure
./configure --with-apxs2=/usr/local/apache/bin/apxs
--enable-ftp --enable-magic-quotes --enable-track-vars --enable-sockets
--with-gettext --with-gd --with-zlib-dir=/usr/local
--with-freetype-dir=/usr/local --enable-soap
--with-mysqli=/usr/local/mysql/bin/mysql_config --with-xmlrpc
--with-imap=/usr/local/src/imap-2004g --enable-mbstring=all
--with-mime-magic=/usr/share/misc/magic.mime --with-mcrypt --with-iconv
--enable-mbregex --enable-mime-magic --with-openssl=/usr/local/ssl
--with-imap-ssl --with-mysql=/usr/local/mysql