主题:  :php装好了之后一运行就出现安全警告~

蓝岭飞鸟

职务:普通成员
等级:2
金币:1.0
发贴:395
注册:2001/10/18 12:37:14
#12002/4/4 10:29:08
Security Alert! PHP CGI cannot be accessed directly.
This PHP CGI binary was compiled with force-cgi-redirect enabled. This means that a page will only be served up if the REDIRECT_STATUS CGI variable is set. This variable is set, for example, by Apache\'s Action directive redirect.

You may disable this restriction by recompiling the PHP binary with the --disable-force-cgi-redirect switch. If you do this and you have your PHP CGI binary accessible somewhere in your web tree, people will be able to circumvent .htaccess security by loading files through the PHP parser. A good way around this is to define doc_root in your php.ini file to something other than your top-level DOCUMENT_ROOT. This way you can separate the part of your web space which uses PHP from the normal part using .htaccess security. If you do not have any .htaccess restrictions anywhere on your site you can leave doc_root undefined. If you are running IIS, you may safely set cgi.force_redirect=0 in php.ini.


我是xp自带的iis,我已经按照这个上面说的做了。结果还是不行。



5D雷锋

职务:普通成员
等级:3
金币:10.0
发贴:1008
注册:2001/11/30 12:30:34
#22002/4/5 16:40:58
估计是PHP的设定不对!



蓝岭飞鸟

职务:普通成员
等级:2
金币:1.0
发贴:395
注册:2001/10/18 12:37:14
#32002/4/5 18:06:02
改设的我都设了啊~你能贴一个设好的ini文件吗??



helmet

职务:版主
等级:4
金币:10.0
发贴:1559
注册:2004/1/30 15:59:27
#42002/4/5 23:09:16
www.php.net上面有一个
PHP 4.1.2 installer
自动安装调试php环境。

编辑历史:[这消息被deathcult编辑过(编辑时间2002-04-05 23:10:12)]