咨询热线:4006-75-4006

售前:9:00-23:30    备案:9:00-18:00    技术:7*24h

如何在wdcp下安装mod_encoding

2016-08-12 20:28:12 7777次

dcp安?mod_encoding实现中文文件名访问

wget -c "http://www.landui.com/linux/mod_encoding_2010.zip"
unzip mod_encoding_2010.zip
cd mod_encoding_2010
patch -p0 < mod_encoding.c-apache2.2-20060520.patch
cd lib
chmod 777 configure
./configure --prefix=/usr
make
make install
ldconfig
cd ../
chmod 777 configure
./configure --with-apxs=/www/wdlinux/apache/bin/apxs --with-iconv-hook=/usr/include
make
gcc -shared -o mod_encoding.so mod_encoding.o -Wc,-Wall -Llib -liconv_hook
cp mod_encoding.so /www/wdlinux/apache/modules/

vi  /www/wdlinux/apache/conf/httpd.conf
添加一下内容到加载模块的部分:
LoadModule encoding_module modules/mod_encoding.so
<IfModule mod_encoding.c>
    EncodingEngine on
    NormalizeUsername on
    SetServerEncoding GBK
    DefaultClientEncoding UTF-8 GBK GB2312
</IfModule>


首页
最新活动
个人中心