再次与apache革命
今天
继续与apache的rewrite模块进行革命
为了知道到底是什么原因
我编译了apache不下20次
先解压缩mod_limitipconn-0.22和httpd
然后进入httpd的目录
先把mod_limitipconn给patch进去
patch -p1 < ../mod_limitipconn-0.22/apachesrc.diff
./buildconf
然后会提示如下的警告,不用理会
- : WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
- autoheader: WARNING: and `config.h.top', to define templates for `config.h.in'
- autoheader: WARNING: is deprecated and discouraged.
- autoheader:
- autoheader: WARNING: Using the third argument of `AC_DEFINE' and
- autoheader: WARNING: `AC_DEFINE_UNQUOTED' allows to define a template without
- autoheader: WARNING: `acconfig.h':
- autoheader:
- autoheader: WARNING: AC_DEFINE([NEED_FUNC_MAIN], 1,
- autoheader: [Define if a function `main' is needed.])
- autoheader:
- autoheader: WARNING: More sophisticated templates can also be produced, see the
- autoheader: WARNING: documentation.
最后我的编译时的参数是:
- ./configure --prefix=/usr/local/apache2 --enable-mods=all --enable-rewrite --enable-speling --enable-ssl --with-ssl=/usr/local/openssl --enable-forward --enable-vhost-alias --with-module=aaa:../mod_limitipconn-0.22/mod_limitipconn.c
- make
- make install
然后apachectl -l
显示:
Compiled in modules:
core.c
mod_access.c
mod_auth.c
mod_include.c
mod_log_config.c
mod_env.c
mod_setenvif.c
mod_ssl.c
prefork.c
http_core.c
mod_mime.c
mod_limitipconn.c
mod_status.c
mod_autoindex.c
mod_asis.c
mod_cgi.c
mod_negotiation.c
mod_dir.c
mod_imap.c
mod_actions.c
mod_speling.c
mod_userdir.c
mod_alias.c
mod_rewrite.c
mod_so.c
看到了rewrite,limitipconn,ssl都加载了。。
终于暂时的松口气了。。。
然后再重新编译php
- ./configure --prefix=/usr/local/php/ --with-mysql=/usr/local/mysql/ --with-apxs2=/usr/local/apache2/bin/apxs --with-curl=/usr/local/curl/ --with-mcrypt=/usr/local/libmcrypt/ --enable-ftp --with-zlib-dir=/usr/local/zlib/
- make
- make install
- cp ./php.ini-dist /usr/loocal/php/php.ini
这次我知道
apache的知识点非常的多
我现在也只不过是学习一些皮毛而已
学海无涯啊!!!
下面附上我这次编译apache参考的URL:
http://www.kreny.com/doc/apache2.0/install.html
http://www.kreny.com/doc/apache2.0/dso.html
http://www.kreny.com/doc/apache2.0/mod/mod_rewrite.html
http://www.chedong.com/tech/apache_install.html
http://blog.supercn.net/archives/2004/12/06/164/
http://www.gd-linux.org/bbs/archive/index.php/t-554.html
继续努力!!!
也希望可以结交更多的朋友,来一起研究

[...] 如果你不知道怎么将mod_limitipconn加载到apache里面,请参考我的这片文章 [...]