Home  >  Article  >  Backend Development  >  The specified CGI application misbehaved by not returning a_PHP教程

The specified CGI application misbehaved by not returning a_PHP教程

WBOY
WBOYOriginal
2016-07-21 15:31:30831browse

is an error report:
The specified CGI application misbehaved by not returning a complete set of HTTP headers
means: (the CGI mode of the http protocol is not running correctly)

because The -wT parameter is not supported in the first sentence of the perl script. Just replace all -wT with -w
That is: replace #!/usr/bin/perl –wT with: #!/usr/bin /perl –w
This means that php is running in CGI mode. Find gi.force_redirect in php.ini, remove the semicolon in front and change the value to 0.

Just run it again, this is the configuration method of another running mode of PHP

The PHP error encountered today

CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers.

The final solution is to change PHP's CGI mode to isapi mode.

Environment: windows XP SP3+IIS5.1+ActivePerl 5.10.0
After installing BugZilla, configure CGI, the error after running is as follows:

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.2bugzilla-3.4.2index.cgi line 1.

Error report:
The specified CGI application misbehaved by not returning a complete set of HTTP headers
means: ( The CGI mode of the http protocol does not run correctly)

Because the -wT parameter is not supported in the first sentence of the perl script, just replace all -wT with -w
That is: #!/usr Replace /bin/perl –wT with: #!/usr/bin/perl –w
This means that php is running in CGI mode. Find gi.force_redirect in php.ini and remove the semicolon in front of it. Just change it to 0.

PS: Another solution
Modify the IIS settings, the home directory tab->Application Settings->Select CGI, and then add/edit the application extension mapping name: Make CGI executable The file name is written as:
D:Perlbinperl.exe -x -wT “%s” %s
(Note: My Perl is installed in the D:Perl directory)
No need to change this way BUGZilla files

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/322989.htmlTechArticle is an error report: The specified CGI application misbehaved by not returning a complete set of HTTP headers means: (http protocol The CGI mode does not run correctly) because the perl script...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn