It's a bug report:
The specified CGI application misbehaved by not returning a complete set of HTTP headers
Meaning: (The CGI mode of the http protocol is running incorrectly)
Because the -wT parameter is not supported in the first sentence of the perl script, replace all -wT with -w
That is: replace #!/usr/bin/perl –wT with: replace #!/usr/bin/perl –w
This means that php is tested using CGI model. Find gi.force_redirect and remove the previous semicolon and change the value to 0.
Just run again, this is another PHP operating mode configuration method
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 the CGI method of PHP to the isapi method.
Environment: windows XP SP3+IIS5.1+ActivePerl 5.10.0
After installing BugZilla, configure CGI, and 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.2\bugzilla-3.4.2\ line 1.
Error Report:
The specified CGI application misbehaved by not returning a complete set of HTTP headers
Meaning: (The CGI mode of the http protocol is running incorrectly)
Because the -wT parameter is not supported in the first sentence of the perl script, replace all -wT with -w
That is: replace #!/usr/bin/perl –wT with: replace #!/usr/bin/perl –w
This means that php is tested using CGI model. Find gi.force_redirect and remove the previous semicolon and change the value to 0.
PS: Another solution
Modify the IIS settings, Home Directory tab -> Application Settings -> Select CGI, and then add/edit application extension map name: Write the CGI executable file name as:
D:\Perl\bin\ -x -wT “%s“ %s
(Note: Here, my Perl is installed in the D:\Perl directory)
This way, there is no need to change the BUGZilla file
The specified CGI application misbehaved by not returning a complete set of HTTP headers
Meaning: (The CGI mode of the http protocol is running incorrectly)
Because the -wT parameter is not supported in the first sentence of the perl script, replace all -wT with -w
That is: replace #!/usr/bin/perl –wT with: replace #!/usr/bin/perl –w
This means that php is tested using CGI model. Find gi.force_redirect and remove the previous semicolon and change the value to 0.
Just run again, this is another PHP operating mode configuration method
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 the CGI method of PHP to the isapi method.
Environment: windows XP SP3+IIS5.1+ActivePerl 5.10.0
After installing BugZilla, configure CGI, and 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.2\bugzilla-3.4.2\ line 1.
Error Report:
The specified CGI application misbehaved by not returning a complete set of HTTP headers
Meaning: (The CGI mode of the http protocol is running incorrectly)
Because the -wT parameter is not supported in the first sentence of the perl script, replace all -wT with -w
That is: replace #!/usr/bin/perl –wT with: replace #!/usr/bin/perl –w
This means that php is tested using CGI model. Find gi.force_redirect and remove the previous semicolon and change the value to 0.
PS: Another solution
Modify the IIS settings, Home Directory tab -> Application Settings -> Select CGI, and then add/edit application extension map name: Write the CGI executable file name as:
D:\Perl\bin\ -x -wT “%s“ %s
(Note: Here, my Perl is installed in the D:\Perl directory)
This way, there is no need to change the BUGZilla file