模快在apache server 下不能运转!

由 shaoping 在 12-05-2003 05:45 发表:

模快在apache server 下不能运转!

我下了一个mod_limitipconn-0.22 ,它

运行后自动生成,AddModule mod_limitipconn.c,这话句在我的httpd.conf 下,但我启动web server 的时候...

[root@localhost conf]# /web/bin/apachectl start

Syntax error on line 235 of /web/conf/httpd.conf:

Invalid command 'AddModule', perhaps mis-spelled or defined by a module not included in the server configuration

就说这command 不能用。

请问在安装mod_limitipconn-0.22 这个模快的时候还要安装其它的软件吗?

谢谢


由 dato 在 12-05-2003 11:32 发表:


最简单就是修改makefile将这两行指向你的apache安装目录

比如/usr/local/apache2/bin/apachectl

the used tools

APXS=apxs

APACHECTL=apachectl

install doc

> quote: > > * * * > > Instructions for statically compiling mod_limitipconn into httpd:
>
>
>
> tar xzvf httpd-2.0.39.tar.gz
>
> tar xzvf mod_limitipconn-0.22.tar.gz
>
> cd httpd-2.0.39
>
> ./configure --with-module=aaa:../mod_limitipconn-0.22/mod_limitipconn.c
>
> make
>
> make install
>
>
>
> -----------------------------------------------------------------------
>
>
>
> Instructions for building as a Dynamic Shared Object (DSO):
>
>
>
> tar xzvf mod_limitipconn-0.22.tar.gz
>
> cd mod_limitipconn-0.22
>
> make install
>
>
>
> -----------------------------------------------------------------------
>
>
>
> Instructions for building static httpd with proxy tracking:
>
>
>
> tar xzvf httpd-2.0.39.tar.gz
>
> tar xzvf mod_limitipconn-0.22.tar.gz
>
> cd httpd-2.0.39
>
> patch -p1 < ../mod_limitipconn-0.22/apachesrc.diff
>
> ./buildconf
>
> ./configure --enable-forward --with-module=aaa:../mod_limitipconn-0.22/mod_limitipconn.c
>
> make
>
> make install
>
>
>
> -----------------------------------------------------------------------
>
>
>
> Instructions for building DSO with proxy tracking:
>
>
>
> tar xzvf httpd-2.0.39.tar.gz
>
> tar xzvf mod_limitipconn-0.22.tar.gz
>
> cd httpd-2.0.39
>
> patch -p1 < ../mod_limitipconn-0.2

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus