httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Qingjuan Gu" <>
Subject Premature end of script headers
Date Tue, 25 Jun 2002 18:24:25 GMT
Hi everybody,

When I brwoser this perl script on the web broswer, it gives error:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your

In error.log: 
[Tue Jun 25 14:20:22 2002] [error] [client] Premature end of script headers: /db4/usr/local/www/html_files/cgi-bin/

But other cgi or perl script in the same directory work fine.

I do not know hwat is wrong with this script, here is this script:

use CGI;

my $cgi = new CGI;
print "Content-type: text/html\r\n\r\n";
init('/compbio/programs/emboss/share/EMBOSS', '/compbio/programs/emboss/bin', '/db4/usr/local/www/html_files/html/EMBOSS',
'http://athena', '', 0);
for ($cgi->param("_action")) {
        /^mmenu/        and do { mmenu($cgi); last; };
        /^input/        and do { input($cgi); last; };
        /^run/          and do { run($cgi); last; };
        /^help/         and do { help($cgi); last; };
        /^manual/       and do { manual($cgi); last; };
        /^search/       and do { search($cgi); last; };
print "\n";
Any idea will be appreciated greatly.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message