一.需要查察下系统iconv_hook, mod_encoding 是否支持
1. rpm -ivh iconv_hook--1.i386.rpm
2. rpm -ivh mod_encoding--1.i386.rpm
查察服务器是否安装iconv_hook 凡是在/usr/include/下面
查察mod_encoding 是否安装 rpm -qa mod_encoding
二.Wdcp apache 默认是没有安装mod_encoding
1)下载压缩包
1. wget
2、将压缩包解压,举办编译(重要)
1.tar zxvf mod_encoding_64.tar.gz
2.cd mod_encoding_64
3.patch -p0 < mod_encoding.c-apache2.2-20060520.patch
4.cd lib/
5.chmod 755 configure
6 ./configure --prefix=/usr
7.make && make install
8.ldconfig
9.cp -p /www/wdlinux/httpd-/bin/apxs /usr/bin
10./configure --with-apxs=/www/wdlinux/httpd-2.2.22/bin/apxs --with-iconv-hook=/usr/include/
11.make
12.gcc -shared -o mod_encoding.so mod_encoding.o -Wc,-Wall -Llib -liconv_hook
13.cp mod_encoding.so /www/wdlinux/httpd-/modules/
3.添加apache 支持mod_encoding
cd /www/wdlinux/httpd-/conf/
vi httpd.conf
4. 重启apache即可