LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 685|回复: 2

模快在apache server 下不能运转!

[复制链接]
发表于 2003-12-5 05:45:53 | 显示全部楼层 |阅读模式
我下了一个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 这个模快的时候还要安装其它的软件吗?

谢谢

:cool:
发表于 2003-12-5 11:32:57 | 显示全部楼层
最简单就是修改makefile将这两行指向你的apache安装目录
比如/usr/local/apache2/bin/apachectl
#   the used tools
APXS=apxs
APACHECTL=apachectl

install doc
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.22/apachesrc.diff
./buildconf
./configure --enable-forward
make
make install
cd ../mod_limitipconn-0.22
PATH=/usr/local/apache2/binPATH make install
 楼主| 发表于 2003-12-5 15:20:27 | 显示全部楼层

谢谢

我也想试试你的方法,但我的RH现在入不了啦!

When i start my HR9, it shows me, The gdm user doess not exist. Please correct gdm configuration /etc/X11/gdm/gdm.conf and restart gdm, this information. And i can't long on in to my computer by Root.

what i need to do?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表