来源:www.cncfan.com | 2006-3-17 | (有3417人读过)
c. 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. -----------------------------------------------------------------------------------------
修改php.ini将cgi.force_redirect设为0,然后重起IIS --------------------------------------------------------------- 除了楼上的可能外,Apache默认目录权限未配置也会造成该提示生效。 修改Apache Conf目录httpd.conf <Directory /> Options None AllowOverride All Order allow,deny Allow from all </Directory> 把PHP配置成二进制CGI绑定 ScriptAlias /php/ "d:/php/" AddType application/x-httpd-php .php Action application/x-httpd-php "/php/php.exe" 若不想配置成CGI方式,可以用模块方式配置 LoadModule php4_module d:/php/sapi/php4apache.dll AddModule mod_php4.c AddType application/x-httpd-php .php 注意根据你机器中的路径修改!
|