免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2887 | 回复: 4
打印 上一主题 下一主题

[Web] apache的DSO问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-11-26 19:15 |只看该作者 |倒序浏览
1、环境:FreeBSD 5.4+mysql4+php4+apache2.0.54
源码安装apache ./configure --prefix="..." --enable-shared=max --enable-module=rewrite --enable-module=so
2、现在想使用 rewrite功能,在httpd.conf中加入 RewriteEngine on 启动apache就出错Invalid command 'RewriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
3、从源码文件夹中cp mod_rewrite.c 文件执行 apxs -i -a -c mod_rewrite.c
出错:apxs:Error: Command failed with rc=65536
4、执行httpd -l 有mod_so.c 没有mod_rewrite 的相关信息
5、cp源码一个mod_so.c 执行 apxs -i -c -a mod_so 仍然出错
Warning! dlname not found in /server/apache2/modules/mod_so.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /server/apache2/modules/mod_so.so
chmod: /server/apache2/modules/mod_so.so: No such file or directory
apxs:Error: Command failed with rc=65536
6、不过在当前目录中多了mod_so.la lo o slo几个文件
7、在module文件夹中也多了mod_so.a la 两个文件
不知道是那里出错了,我搞了一个下午还是 没搞定

论坛徽章:
0
2 [报告]
发表于 2005-11-27 10:45 |只看该作者
顶一下

论坛徽章:
1
技术图书徽章
日期:2013-12-05 23:25:45
3 [报告]
发表于 2005-11-27 15:42 |只看该作者
原帖由 kronos911 于 2005-11-26 19:15 发表
1、环境:FreeBSD 5.4+mysql4+php4+apache2.0.54
源码安装apache ./configure --prefix="..." --enable-shared=max --enable-module=rewrite --enable-module=so
2、现在想使用 rewrite功能,在htt ...


1、环境:FreeBSD 5.4+mysql4+php4+apache2.0.54
源码安装apache ./configure --prefix="..." --enable-shared=max --enable-module=rewrite --enable-module=so
已经支持dso了
2、现在想使用 rewrite功能,在httpd.conf中加入 RewriteEngine on 启动apache就出错Invalid command 'RewriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
没有加载mod_rewrite,当然出错
3、从源码文件夹中cp mod_rewrite.c 文件执行 apxs -i -a -c mod_rewrite.c
出错:apxs:Error: Command failed with rc=65536
最后去mod_rewrite在apache spurce下面的目录使用完整的apxs路径这么做
4、执行httpd -l 有mod_so.c 没有mod_rewrite 的相关信息
5、cp源码一个mod_so.c 执行 apxs -i -c -a mod_so 仍然出错
Warning! dlname not found in /server/apache2/modules/mod_so.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /server/apache2/modules/mod_so.so
chmod: /server/apache2/modules/mod_so.so: No such file or directory
apxs:Error: Command failed with rc=65536
多此一举
6、不过在当前目录中多了mod_so.la lo o slo几个文件
7、在module文件夹中也多了mod_so.a la 两个文件



个人建议,你保留了你安装时候的apache的src,对么,那么你可以重新编译一份到/usr/local/test-apache,并且记得用上支持rewrite。
然后把这个里面的需要的模块拷贝过去即可。

论坛徽章:
0
4 [报告]
发表于 2005-11-28 00:03 |只看该作者
rewrite没有单独编译成一个模板文件。

估计是楼主编译时打错了。


我有一次,也是写成:--enable-rewirte

编译没出错,但配置文件里打开rewrite就报错。

论坛徽章:
0
5 [报告]
发表于 2005-11-28 13:41 |只看该作者
重新编译一次!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP