欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

DedeCMS Error: (PHP 5.3 and above) Please set request_order 问题

shiping1 的头像
DedeCMS Error: (PHP 5.3 and above) Please set request_order
支持版本: dedev57dedev57dedev57
浏览:3009
2013-07-15  来源:未知 作者:admin  编辑:admin
 

部分使用PHP 5.3的主机可能会有下面的提示:

(PHP 5.3 and above) Please set 'request_order' ini value to include C,G and P (recommended: 'CGP') in php.ini

由于在PHP最新的版本中增加了一个配置项目“request_order”,默认值为“GP”,这个存在一定的安全风险。这里我们建议用户将配置更改为“CGP”

可以在phpinfo中查看对应的php.ini配置目录,找到下面选项:( 如果没有的话 就添加吧 )

1request_order = "GP"

更改为

1request_order = "CGP"

重启服务器后即可。
 

一般情况下 我在 register_globals 的上面 )
request_order="CGP"
; You should do your best to write your scripts so that they do not require
; register_globals to be on;  Using form variables as globals can easily lead
; to possible security problems, if the code is not very well thought of.
register_globals = Off
 
由于此选项会影响服务器的安全,请大家务必及时更改。
 
普通分类: