欢迎您,零度科技专业海外服务器租用
公司电话: 24小时电话: 

当前位置:首页>帮助教程>Virtualmin

目录导航

如何在webmin安装Sohosin安全模块(动态安装,不需要重新编译php)

美国KT机房 添加于 2013-07-16   webmin安装
Virtualmin

有一些商城客户希望在webmin安装Sohosin安全模块,经过研究,我们给出下面的教材以供参考,请ssh自行安装。一般网站,不推荐安装它。如需要我们为您安装,收取100元/次的费用。

动态安装suhosin(动态安装,不需要重新编译php):

yum -y install gcc gcc+

wget http://download.suhosin.org/suhosin-0.9.31.tgz
tar zxvf suhosin-0.9.31.tgz
cd suhosin-0.9.31
phpize
./configure --with-php-config=/usr/local/php/bin/php-config
./configure
make
make install

vi /etc/php.ini添加如下几行

extension=suhosin.so

[suhosin]
suhosin.get.max_value_length = 5120

重启apache
service httpd restart

安装成功后,phpinfo会显示如下:

suhosin This server is protected with the Suhosin Extension 0.9.31

Copyright (c) 2006-2007 Hardened-PHP Project
Copyright (c) 2007-2010 SektionEins GmbH
DirectiveLocal ValueMaster Valuesuhosin.apc_bug_workaroundOffOffsuhosin.cookie.checkraddr00suhosin.cookie.cryptdocrootOnOnsuhosin.cookie.cryptkey[ protected ][ protected ]suhosin.cookie.cryptlistno valueno valuesuhosin.cookie.cryptraddr00suhosin.cookie.cryptuaOnOnsuhosin.cookie.disallow_nul11suhosin.cookie.disallow_ws11suhosin.cookie.encryptOffOffsuhosin.cookie.max_array_depth5050suhosin.cookie.max_array_index_length6464suhosin.cookie.max_name_length6464suhosin.cookie.max_totalname_length256256suhosin.cookie.max_value_length1000010000suhosin.cookie.max_vars100100suhosin.cookie.plainlistno valueno valuesuhosin.coredumpOffOffsuhosin.disable.display_errorsOffOffsuhosin.executor.allow_symlinkOffOffsuhosin.executor.disable_emodifierOffOffsuhosin.executor.disable_evalOffOffsuhosin.executor.eval.blacklistno valueno valuesuhosin.executor.eval.whitelistno valueno valuesuhosin.executor.func.blacklistno valueno valuesuhosin.executor.func.whitelistno valueno valuesuhosin.executor.include.allow_writable_filesOnOnsuhosin.executor.include.blacklistno valueno valuesuhosin.executor.include.max_traversal00suhosin.executor.include.whitelistno valueno valuesuhosin.executor.max_depth00suhosin.filter.actionno valueno valuesuhosin.get.disallow_nul11suhosin.get.disallow_ws00suhosin.get.max_array_depth5050suhosin.get.max_array_index_length6464suhosin.get.max_name_length6464suhosin.get.max_totalname_length256256suhosin.get.max_value_length51205120suhosin.get.max_vars100100suhosin.log.file00suhosin.log.file.nameno valueno valuesuhosin.log.phpscript00suhosin.log.phpscript.is_safeOffOffsuhosin.log.phpscript.nameno valueno valuesuhosin.log.sapi00suhosin.log.script00suhosin.log.script.nameno valueno valuesuhosin.log.syslogno valueno valuesuhosin.log.syslog.facilityno valueno valuesuhosin.log.syslog.priorityno valueno valuesuhosin.log.use-x-forwarded-forOffOffsuhosin.mail.protect00suhosin.memory_limit00suhosin.mt_srand.ignoreOnOnsuhosin.multiheaderOffOffsuhosin.perdir00suhosin.post.disallow_nul11suhosin.post.disallow_ws00suhosin.post.max_array_depth5050suhosin.post.max_array_index_length6464suhosin.post.max_name_length6464suhosin.post.max_totalname_length256256suhosin.post.max_value_length10000001000000suhosin.post.max_vars10001000suhosin.protectkeyOnOnsuhosin.request.disallow_nul11suhosin.request.disallow_ws00suhosin.request.max_array_depth5050suhosin.request.max_array_index_length6464suhosin.request.max_totalname_length256256suhosin.request.max_value_length10000001000000suhosin.request.max_varname_length6464suhosin.request.max_vars10001000suhosin.server.encodeOnOnsuhosin.server.stripOnOnsuhosin.session.checkraddr00suhosin.session.cryptdocrootOnOnsuhosin.session.cryptkey[ protected ][ protected ]suhosin.session.cryptraddr00suhosin.session.cryptuaOffOffsuhosin.session.encryptOnOnsuhosin.session.max_id_length128128suhosin.simulationOffOffsuhosin.sql.bailout_on_errorOffOffsuhosin.sql.comment00suhosin.sql.multiselect00suhosin.sql.opencomment00suhosin.sql.union00suhosin.sql.user_postfixno valueno valuesuhosin.sql.user_prefixno valueno valuesuhosin.srand.ignoreOnOnsuhosin.stealthOnOnsuhosin.upload.disallow_binary00suhosin.upload.disallow_elf11suhosin.upload.max_uploads2525suhosin.upload.remove_binary00suhosin.upload.verification_scriptno valueno value

零度科技原文链接:http://www.ldisp.com/a/virtualmin/2013/1702.shtml

上一篇:Webmin面板如何查看mysql的root密码?怎样找到Mysql数据库的root密码?
下一篇:Virtualmin/webmin开启gzip压缩(网页deflate压缩)

 
了解零度?

零度科技主营全球服务器租用,如果您有服务器租用需求请联系

海外服务器租用

推荐香港、美国、韩国。提供站群服务器、高防服务器租用

海外特价服务器

关注零度特价服务器频道,了解全球特价服务器。

0

业务咨询

    技术服务

      特价活动
        全站搜索
        热门搜索:
        会员
        0通知
        客服
        0特价
        搜索
        TOP
        香港高防服务器,远程桌面,韩国服务器,nginx,反向代理