PHP安全配置

| |
[不指定 2005/02/03 22:31 | by ipaddr ]
如果是虚拟主机提供商,需要提高PHP的安全,可如下:

修改php.ini

safe_mode=On
open_basedir=/var/www/html
display_errors=Off
disable_function=phpinfo,get_cfg_var,popen,exec,passthru,system,phpversion
expose_php = Off
allow_url_fopen = Off

log_errors=

Program | 评论(0) | 引用(31) | 阅读(3674)