httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Qingjuan Gu" <qingj...@wistar.upenn.edu>
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
request

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

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:
#!/compbio/programs/perl-5.6.1/bin/perl5.6.1

use CGI;
use EMBOSS::GUI;

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
.wistar.upenn.edu/EMBOSS', 'http://athena.wistar.upenn.edu/cgi-bin', 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.

Grace




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message