源码论坛,商业源码下载,尽在锦尚中国商业源码论坛

标题: 微信魔方微信系统安全部署的一般性教程/策略 [打印本页]

作者: 洪七公    时间: 2017-7-2 21:22
标题: 微信魔方微信系统安全部署的一般性教程/策略

用于云服务器客户

PHP.INI下禁用敏感函数:
搜索(这个谨慎设置,模块加密会用到部分函数,设置了可能会造成打开空白)disable_functions =

改成:

disable_functions =eval,passthru,popen,exec,system,chroot,scandir,chgrp,chown,shell_exec,proc_open,proc_close,escapeshellarg,escapeshellcmd,show_source,proc_get_status,ini_alter,ini_alter,ini_restore,dl,pfsockopen,openlog,syslog,readlink,symlink,popepassthru,stream_socket_server,fsocket,fsockopen


apache下的站点配置示例:

<VirtualHost *:80>
        php_admin_value open_basedir "/xxx/www/:/tmp/:/proc/"
        #这句的作用是限制php文件只能操作当前目录下的文件,简单来说就是防止后门程序访问系统文件和其他站点文件殃及无辜
        DocumentRoot /xxx/www
        ServerName weixinmofang.com
        ServerAlias weixinmofang.com
        ErrorLog "/xxx/log/012wz.com-error.log"
        CustomLog "/xxx/log/012wz.com.log" common

        <Directory ~ "^/xxx/www/(data|addons|attachment|framework)">
                <FilesMatch "\.(php|php5)$">
                        Order allow,deny
                        Deny from all
                </FilesMatch>
        </Directory>
        #这句的意思禁止设置的目录下执行php文件,多个目录可用|分开,注意这里是绝对路径
</VirtualHost>

【温馨提示:】上面的/xxx/ww是你微赞站点的绝对路径,切勿生搬硬套。

作者: cgqin    时间: 2017-7-8 13:20
weixinmofang.com 要改成自己域名吗?
作者: cgqin    时间: 2017-7-8 13:20
weixinmofang.com 要改成自己域名吗?
作者: zouzhe560    时间: 2017-9-16 21:03
有奶无脑





欢迎光临 源码论坛,商业源码下载,尽在锦尚中国商业源码论坛 (https://bbs.52jscn.com/) Powered by Discuz! X3.3