Apache动态编译安装模块mod_rewrite
来源:互联网 发布:淘宝上怎么查找店铺 编辑:程序博客网 时间:2024/05/02 06:11
转自:http://hi.baidu.com/manmoon/blog/item/40a0b5fd4714851509244d94.html
如果你的服务器apache还没有安装,那很简单,在编译apache时将mod_rewrite模块编译进去就可以,相关文档可以在[url] www.gbunix.com[/url]中找到。如果你的apache已经安装好了,现在只想编译出mod_rewrite.so模块,在apache 中进行加载,下面我们就介绍这个方法。
以Solaris操作系统进行举例:
# PATH=/usr/local/bin:/usr/sfw/bin:/usr/ccs/bin: $PATH
# export PATH
# which gcc
# which make
# find ./ -name mod_rewrite.c //在apache的安装目录中寻找mod_rewrite.c文件
# cd PATH/to/mod_rewrite.c //进入包含mod_rewrite.c文件的目录
# apxs -c mod_rewrite.c //apxs请指定绝对路径,在你当前正在使用apache的bin目录里
# apxs -i -a -n mod_rewrite mod_rewrite.la
如果没有什么错误的话,应该在你的apache的modules目录中编译出一个mod_rewrite.so文件。
编辑httpd.conf文件,确认httpd.conf中已经包含mod_rewrite.so的加载语句,如下:
LoadModule rewrite_module modules/mod_rewrite.so
这时,你的apache应该已经支持rewrite了。
【批注:】
如果出现module rewrite_module is built-in and can't be loaded这种错误,说明该模块已经内建,不需要再动态加载。
可以使用 httpd -l 查看有哪些模块已经内建。
- Apache动态编译安装模块mod_rewrite
- Apache动态编译安装模块mod_rewrite
- apache安装/编译mod_rewrite模块
- apache安装/编译mod_rewrite模块
- 安装apache的mod_rewrite模块
- 给apache安装mod_rewrite模块
- Linux下Apache安装/增加mod_rewrite模块
- Linux下Apache安装/增加mod_rewrite模块
- Apache模块 mod_rewrite
- Apache模块mod_rewrite详解
- apache添加mod_rewrite模块
- Apache mod_rewrite模块配置
- 开启Apache mod_rewrite模块
- Apache模块 mod_rewrite
- Apache模块mod_rewrite
- Ubuntu Apache Mod_Rewrite 安装
- Apache安装mod_rewrite
- 为Apache安装mod_rewrite
- 做项目感言
- MSVC vs. MinGW 之 (lib,dll,def,obj,exe) vs (a,dll,def,o,exe) 玩转攻略手记
- [转]Visual Assist X设置
- Spring的jdbcTemplate使用
- 当你遇到"modifying layer that is being finalized"的时候怎么办?
- Apache动态编译安装模块mod_rewrite
- oracle常用目录结构
- Drupal7 安装 CKEditor 和 IMCE 模块 及配置
- invalid statement in fillwindow
- 代码自定义布局
- Spring中@Autowired注解、@Resource注解的区别
- DB2中存储过程执行慢问题故障处理
- Android 启动过程简介
- python的中文编码问题