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 http://php.net/security.cgi-bin ">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 http://php.net/install.windows ">the manual page.
那个version.php里这样写的: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 http://php.net/security.cgi-bin ">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 http://php.net/install.windows ">the manual page.
解决办法 php.ini中 cgi.force_redirect = 1 改为 cgi.force_redirect=0 然后重启服务器运行就可以了。我测试了phpcms在tomcat运行情况,还行,有点慢 short_open_tag = On 还改了这,忘了因为什么改成On了 short_open_tag规定了是否可以使用PHP代码开始标志的缩写形式 就是这种方式 我的目的是为了整合discuz 这是个discuz java 接口 http://code.google.com/p/discuz-ucenter-api-for-java/ php cms乱码问题 http://bbs.phpcms.cn/viewthread.php?tid=110921 修改include/common.inc.php 文件,找到如下代码: if(GZIP && extension_loaded('zlib')) ini_set('zlib.output_compression', 'On'); 把 'On' 改成 'Off'