php.ini中的cgi.force_redirect未设置为0 [英] cgi.force_redirect is not set to 0 in php.ini

查看:711
本文介绍了php.ini中的cgi.force_redirect未设置为0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



i在我的操作系统中安装了php(Windows 7,32位,IIS服务器),安装时我将php.ini-production文件重命名为php.ini并取消注释以下行在php.ini



fastcgi.impersonate = 1

cgi.fix_pathinfo = 1

cgi.force_redirect = 0

fastcgi.logging = 0



然后我重启服务器..
当我运行程序时
更改不适用,我的程序是

< php

phpinfo();

?>



请帮帮我...


i installed php in my OS (windows 7, 32-bit, IIS server),while installing i renamed the php.ini-production file to php.ini and uncomment the following lines in php.ini

fastcgi.impersonate =1
cgi.fix_pathinfo=1
cgi.force_redirect=0
fastcgi.logging=0

then i restart the server..
when i run the program changes are not applying, my program is
<?php
phpinfo();
?>

please help me...

推荐答案

我找到了我的问题的答案

打开php.ini - c:\ php中的生产文件并取消注释以下行

I found answer for my question
open the php.ini-production file in c:\php and uncomment the following lines
fastcgi.impersonate=1




cgi.fix_pathinfo=1
set cgi.force_redirect=0 and uncomment it
set fastcgi.logging=0 and uncomment it 



然后将文件php.ini-production重命名为php.ini并将其保存到c:\windows

然后重新启动服务器并运行此程序你会发现更改


then rename the file php.ini-production to php.ini and save it to c:\windows
then restart ur server and run this program u'll find the changes

<?php
phpinfo();
?>


这篇关于php.ini中的cgi.force_redirect未设置为0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆