首页 / PHP / tomcat运行php
tomcat运行php
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了tomcat运行php,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含2586字,纯文字阅读大概需要4分钟。
内容图文
![tomcat运行php](/upload/InfoBanner/zyjiaocheng/193/ee6c17b672274098bba2b0250d5eb9a4.jpg)
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.com/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.com/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.com/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.com/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'内容总结
以上是互联网集市为您收集整理的tomcat运行php全部内容,希望文章能够帮你解决tomcat运行php所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。