king

DedeCMS Error: (PHP 5.3 and above) Please set 'request_order' ini value to include C,G and P...解决方法

king web技术 2021-07-12 1694浏览 0

可能很少朋友搭建dedecms(织梦)网站的时候会提示这个错误:

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

DedeCMS Error: (PHP 5.3 and above) Please set 'request_order' ini value to include C,G and P...解决方法

直接上解决方法,如下:

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

可以在phpinfo中查看对应的php.ini配置目录,找到下面选项:

request_order = "GP"

更改为

request_order = "CGP"



发表评论