SuperTaoer::Thanksgiving

当一个垂危的病人无助的望着你的双眼,你会握住她的手,告诉她,上帝现在冬眠么?

七月 2, 2005

再次与apache革命

文章类别: 程序 技术 — SuperTaoer @ 11:41 pm

今天
继续与apache的rewrite模块进行革命

为了知道到底是什么原因
我编译了apache不下20次

先解压缩mod_limitipconn-0.22和httpd
然后进入httpd的目录
先把mod_limitipconn给patch进去
patch -p1 < ../mod_limitipconn-0.22/apachesrc.diff
./buildconf
然后会提示如下的警告,不用理会

  1. : WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
  2. autoheader: WARNING: and `config.h.top', to define templates for `config.h.in'
  3. autoheader: WARNING: is deprecated and discouraged.
  4. autoheader:
  5. autoheader: WARNING: Using the third argument of `AC_DEFINE' and
  6. autoheader: WARNING: `AC_DEFINE_UNQUOTED' allows to define a template without
  7. autoheader: WARNING: `acconfig.h':
  8. autoheader:
  9. autoheader: WARNING:   AC_DEFINE([NEED_FUNC_MAIN], 1,
  10. autoheader:             [Define if a function `main' is needed.])
  11. autoheader:
  12. autoheader: WARNING: More sophisticated templates can also be produced, see the
  13. autoheader: WARNING: documentation.

最后我的编译时的参数是:

  1. ./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
  2.  
  3. make
  4. 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

  1. ./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/
  2.  
  3. make
  4. make install
  5. 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

继续努力!!!
也希望可以结交更多的朋友,来一起研究 :)



Leave a Message

1 Message

 

RSS feed for comments on this post. TrackBack URI

Leave a Message





本站使用 WordPress架设