首 页   · 站长博客 · 用户注册 · 会员登陆  · 会员排行  ·最新主题  ·最近回复  精华区  版权声明  ·论坛管理
  当前登录身份:游客,请先登录。  笔名: 口令: 验证码:   
楼 主  index »  PHP安装/语法/函数 » [求助]怎么了?  


  作者:阿代
  注册时间:2004-11-04
  主题/回复:22/32
  积分:542
  等级:★★☆(五级)
  称号:略有小成

  daiwei988780@163..
  17201846
  www.it-cn.com http://www.cndongbei.com

 

 发表:2004-11-04 20:12:08 阅读 1987 次 回复 3 次 得分1  |   字号 字色
[求助]怎么了?
小弟在做
<?php
    echo phpinfo();
 ?>
   环境测试的时候出现了下面的错误信息,清哪位大虾指点一下。
Security Alert! The 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, e.g. via an Apache Action directive.

For more information as to why this behaviour exists, see the manual page for CGI security.

For more information about changing this behaviour or re-enabling this webserver, consult the installation file that came with this distribution, or visit the manual page.
 
 1#楼  
 
  回复人:一起PHP
  注册时间:2004-02-27
  主题/回复:247/1521
  积分:4649
  等级:★★★★★☆(十一级)
  称号:论坛圣人

   
 1#楼 发表于2004-11-04 20:23:07  评分:1 

重新配置吧。,

你是不是使用了apache??
肯定有的地方没有设置好。
错误提示说,你的CGI有问题。
 2#楼  
 
  回复人:一起PHP
  注册时间:2004-02-27
  主题/回复:247/1521
  积分:4649
  等级:★★★★★☆(十一级)
  称号:论坛圣人

   
 2#楼 发表于2004-11-04 20:29:24  评分: 

错误提示具体说来是一个安全警告。
说你的php cgi不能被直接访问。

你看一下自己的apache配置和机器安全配置,是不是禁止了cgi程序直接访问

尤其是,是不是你使用了windows 2003 server,这个操作系统默认不启用cgi。
 3#楼  
 
  回复人:阿代
  注册时间:2004-11-04
  主题/回复:22/32
  积分:542
  等级:★★☆(五级)
  称号:略有小成

   
 3#楼 发表于2004-11-05 20:38:40  评分:× 

谢谢站长,重配一遍搞定了!
  页数1/1首页 « 1 » 末页
  发表回复:您还没有登陆,无法发表回复。请先[登陆]

一起PHP技术联盟 主办:一起PHP 联系方式:站长QQ:4304410 QQ群:8423742 20159565 站长博客 E-mail: nqp@nqp.me 执行时间:0.006sec
SimsmaBBS 2008 (v6.0) Developed by 17php.com,Copyright(C)2003-2010 All rights reserved. 副本授权:一起PHP官方专用版