小雨点点789 发表于 2017-4-11 09:53:28

(PHP 5.3 and above) Please set 'request_order' ini value to include C,G and P (r

  (PHP 5.3 and above) Please set 'request_order' ini value to include C,G and P (recommended: 'CGP') in php.ini  安装完成之后。进入后台显示。
  官方给的方法 设置一下php.ini
由于在PHP最新的版本中增加了一个配置项目“request_order”,默认值为“GP”,这个存在一定的安全风险。这里我们建议用户将配置更改为“CGP”
可以在phpinfo中查看对应的php.ini配置目录,找到下面选项:
1request_order = "GP"


更改为
1request_order = "CGP"


重启服务器后即可。
 
 
 
 
但是有的虚拟主机无法修改php.ini可以
修改一下 include/common.inc.php 文件就行了,将 32行至36行注释掉或者删除就可以了,
/*
if(version_compare(PHP_VERSION, '5.3.0', '>'))
{
if(strtoupper(ini_get('request_order')) == 'GP') 
exit('DedeCMS Error: (PHP 5.3 and above) Please set \'request_order\' ini value to include C,G and P (recommended: \'CGP\') in php.ini, 
 
把这一段/*  */注释掉就可以
页: [1]
查看完整版本: (PHP 5.3 and above) Please set 'request_order' ini value to include C,G and P (r