LinuxSir.cn,穿越时空的Linuxsir!

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

apache2。0。52 模块的问题

[复制链接]
发表于 2004-12-28 15:39:23 | 显示全部楼层 |阅读模式
我在一个桌面系统上用资源包安装了apache2.0.52
./configure时加了enable-module=most选项
但是安装好后,发现apache的安装目录里没有modules文件夹
2.0.49有这个文件夹的,里面有mod_cgi.so等文件。
在httpd.conf中加入loadmodule cgi_mod modules/mod_cgi.so
就可以调用这些模块
在2。0。52中要如何使用模块呢
我尝试把老版本的modules文件夹拷贝到2。0。52的安装目录里,然后在httpd。conf里loadmodule 指定modules文件夹的位置,
重启httpd
提示:module cig_module is built-in and can't be loaded
发表于 2004-12-28 16:32:30 | 显示全部楼层
module cig_module is built-in and can't be loaded
系统提示该模块已经内建,不能load
你可以运行httpd -l 查看
如果想编绎成动态dso,"--enable-mods-shared=all
我的是这样的
  1. #! /bin/sh
  2. #
  3. # Created by configure

  4. CC="gcc-3.2"; export CC
  5. CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -ffast-math -finline-functions -pipe"; export CFLAGS
  6. "./configure" \
  7. "--with-maintainer-mode" \
  8. "--enable-layout=dato" \ 注释注意在源码目录下查找类似layout的文件,可以在里面定义你的apache的相应安装目录
  9. "--enable-so" \
  10. "--with-mpm=threadpool" \
  11. "--enable-mods-shared=all" \
  12. "--enable-alisa=shared" \
  13. "--enable-deflate=shared" \
  14. "--enable-file-cache=shared" \
  15. "--enable-proxy=shared" \
  16. "--enable-proxy-connect=shared" \
  17. "--enable-proxy-ftp=shared" \
  18. "--enable-proxy-http=shared" \
  19. "--enable-ssl=shared" \
  20. "--disable-charset-lite" \
  21. "--disable-disk-cache" \
  22. "--disable-mem-cache" \
  23. "--disable-cache" \
  24. "--disable-case-filter" \
  25. "--disable-case-filter-in" \
  26. "--disable-example" \
  27. "--with-z" \
  28. "EAPI_MM=../mm-1.3.0" \
  29. "$@"
复制代码
 楼主| 发表于 2004-12-29 08:09:39 | 显示全部楼层
谢谢
回家试试
 楼主| 发表于 2004-12-29 11:03:47 | 显示全部楼层
我在rh9自带的2。0。40下执行httpd -l
得出的结果是
core.c
prefor.c
http_core.c
mod_so.c
并没有在httpd.conf中loadmodule env_module modules/mod_env.so等内容
mod_so.c加载了那些so?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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