Web服务器常见编译的选项

常见的用于搭建Web服务器的软件有Apache、Perl、PHP、mysql等,其中Perl的编译选项最简单:
sh Configure -des
---------------------------------------
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

Monthly Archives

Pages

Powered by Movable Type 7.7.2

About this Entry

This page contains a single entry by Cnangel published on July 17, 2008 8:18 PM.

40个技巧优化你的PHP代码 was the previous entry in this blog.

送花的人 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.