The specified CGI application misbehaved by not returning a complete set of HTTP headers
更新時間:2011年03月31日 11:31:00 作者:
The specified CGI application misbehaved by not returning a complete set of HTTP headers
是錯誤報告:
The specified CGI application misbehaved by not returning a complete set of HTTP headers
意思是:(http協(xié)議的CGI模式運行不正確)
因為perl腳本的第一句中不支持 -wT 參數(shù),將所有的 -wT 替換成 -w 即可
即:將 #!/usr/bin/perl –wT 替換為:將 #!/usr/bin/perl –w
這是代表php是以CGI模試運行的 在php.ini找到 gi.force_redirect 把前面的分號去掉 把值改成0就行了。
再次運行就可以了,這是PHP另一種運行模式的配置方法
今天遇到的PHP錯誤
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers.
最后解決辦法是將PHP的CGI方式改為isapi方式。
環(huán)境:windows XP SP3+IIS5.1+ActivePerl 5.10.0
安裝BugZilla后,配置CGI,運行后錯誤如下:
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:
"-T" is on the #! line, it must also be used on the command line at E:\bugzilla-3.4.2\bugzilla-3.4.2\index.cgi line 1.
錯誤報告:
The specified CGI application misbehaved by not returning a complete set of HTTP headers
意思是:(http協(xié)議的CGI模式運行不正確)
因為perl腳本的第一句中不支持 -wT 參數(shù),將所有的 -wT 替換成 -w 即可
即:將 #!/usr/bin/perl –wT 替換為:將 #!/usr/bin/perl –w
這是代表php是以CGI模試運行的 在php.ini找到 gi.force_redirect 把前面的分號去掉 把值改成0就行了。
PS:另外解決辦法
修改IIS設置里,主目錄選項卡->應用程序設置->選擇CGI,之后在添加/編輯應用程序擴展映射名:將CGI可執(zhí)行文件名寫為:
D:\Perl\bin\perl.exe -x -wT “%s“ %s
(注:這里我的Perl安裝在D:\Perl目錄里)
這個樣子就不需要更改BUGZilla的文件了
The specified CGI application misbehaved by not returning a complete set of HTTP headers
意思是:(http協(xié)議的CGI模式運行不正確)
因為perl腳本的第一句中不支持 -wT 參數(shù),將所有的 -wT 替換成 -w 即可
即:將 #!/usr/bin/perl –wT 替換為:將 #!/usr/bin/perl –w
這是代表php是以CGI模試運行的 在php.ini找到 gi.force_redirect 把前面的分號去掉 把值改成0就行了。
再次運行就可以了,這是PHP另一種運行模式的配置方法
今天遇到的PHP錯誤
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers.
最后解決辦法是將PHP的CGI方式改為isapi方式。
環(huán)境:windows XP SP3+IIS5.1+ActivePerl 5.10.0
安裝BugZilla后,配置CGI,運行后錯誤如下:
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:
"-T" is on the #! line, it must also be used on the command line at E:\bugzilla-3.4.2\bugzilla-3.4.2\index.cgi line 1.
錯誤報告:
The specified CGI application misbehaved by not returning a complete set of HTTP headers
意思是:(http協(xié)議的CGI模式運行不正確)
因為perl腳本的第一句中不支持 -wT 參數(shù),將所有的 -wT 替換成 -w 即可
即:將 #!/usr/bin/perl –wT 替換為:將 #!/usr/bin/perl –w
這是代表php是以CGI模試運行的 在php.ini找到 gi.force_redirect 把前面的分號去掉 把值改成0就行了。
PS:另外解決辦法
修改IIS設置里,主目錄選項卡->應用程序設置->選擇CGI,之后在添加/編輯應用程序擴展映射名:將CGI可執(zhí)行文件名寫為:
D:\Perl\bin\perl.exe -x -wT “%s“ %s
(注:這里我的Perl安裝在D:\Perl目錄里)
這個樣子就不需要更改BUGZilla的文件了
相關文章
php實現(xiàn)根據(jù)字符串生成對應數(shù)組的方法
這篇文章主要介紹了php實現(xiàn)根據(jù)字符串生成對應數(shù)組的方法,包含了數(shù)組操作的技巧及eval函數(shù)的用法,需要的朋友可以參考下2014-09-09關于PHP5和PHP7中數(shù)組實現(xiàn)方式的比較總結
PHP7比PHP5性能提升了兩倍,全面一致的64位支持,以前的許多致命錯誤,現(xiàn)在改成拋出異常,下面這篇文章主要給大家介紹了關于PHP5和PHP7中數(shù)組實現(xiàn)方式比較的相關資料,需要的朋友可以參考下2021-09-09PHP訪問MYSQL數(shù)據(jù)庫封裝類(附函數(shù)說明)
MYSQL 數(shù)據(jù)訪問方式,php4支持以mysql_開頭的過程訪問方式,php5開始支持以mysqli_開頭的過程和mysqli面向對象訪問方式,本封裝類以mysql_封裝2010-12-12