Customer Feedback today: the cgi program compiled by perl cannot run and an error is reported. view the log:
[Mon Aug 22 16:12:57 2011] [error] [client 59.57.251.34] Premature end of script headers: aaa. cgi
[Mon Aug 22 16:12:58 2011] [error] [client 59.57.251.34] Premature end of script headers: aaa. cgi
[Mon Aug 22 16:12:58 2011] [error] [client 59.57.251.34] Premature end of script headers: aaa. cgi
[Mon Aug 22 16:13:17 2011] [error] [client 59.57.251.34] Premature end of script headers: aaa. cgi
[Mon Aug 22 16:13:19 2011] [error] [client 59.57.251.34] Premature end of script headers: aaa. cgi
[Mon Aug 22 16:13:19 2011] [error] [client 59.57.251.34] Premature end of script headers: aaa. cgi
[Mon Aug 22 16:13:20 2011] [error] [client 59.57.251.34] Premature end of script headers: aaa. cgi
[Mon Aug 22 16:13:20 2011] [error] [client 59.57.251.34] Premature end of script headers: aaa. cgi
[Mon Aug 22 16:13:21 2011] [error] [client 59.57.251.34] Premature end of script headers: aaa. cgi
[Mon Aug 22 16:13:21 2011] [error] [client 59.57.251.34] Premature end of script headers: aaa. cgi
When the server runs directly, the following error occurs:
[Root @ localhost cgi-bin] #./aaa. cgi
-Bash:./aaa. cgi:/usr/bin/perl ^ M: bad interpreter: no such file or directory
Root @ localhost cgi-bin] # dos2unix aaa. cgi
Verify again, OK!
Analysis: the file format is incorrect. It is not in binary format...
This article is from the "Flying Fish" blog