Premature end of script headers means that something went wrong and a
message to that effect was sent out about it before any data was to be
transmitted. What it means is that the script has a problem when
running.
Causes are :
1) bad code
EG - in perl each staement must be ended with a semicolon
So if I had this line in perl :
print "Hello World"
I would get a premature end of script header because it needs to
be
print "Hello World";
2) A resource that the script needs it can't find.
EG - again a perl example
use CGI;
I'd get that error if I didn't have the CGI perl module
installed
3) permissions - it has to be executable
Do to the directory that the cgi file is in and type ls -l.
It should be something like -rwxr-xr-x ....
If it's not executable by the user the web server is running as then
your get the premature end of script headers.
-----Original Message-----
From: Matt Mencel [mailto:MR-Mencel@;wiu.edu]
Sent: Thursday, October 24, 2002 1:40 PM
To: [EMAIL PROTECTED]
Subject: RE: [vqadmin] 500 Error in IE6
Dan,
Thanks for your help...
I double checked the username and password in the vqadmin.passwd file,
restarted Apache, and tried accessing the vqadmin.cgi. Here are the
last few lines from the resulting error log. Not sure what "premature
end of script headers" means. Any idea?
Thanks,
Matt
[Thu Oct 24 13:39:50 2002] [notice] SIGHUP received. Attempting to
restart [Thu Oct 24 13:39:50 2002] [notice] Apache/1.3.27 (Unix)
mod_ssl/2.8.11 OpenSSL/0.9.7-beta3 configured -- resuming normal
operations [Thu Oct 24 13:39:50 2002] [notice] Accept mutex: sysvsem
(Default:
sysvsem)
[Thu Oct 24 13:39:58 2002] [error] [client 143.43.192.111] Premature end
of script headers: /cgi-bin/vqadmin/vqadmin.cgi ~
-----Original Message-----
From: Dan Muey [mailto:dmuey@;infiniplex.com]
Sent: Thursday, October 24, 2002 10:19 AM
To: [EMAIL PROTECTED]
Subject: RE: [vqadmin] 500 Error in IE6
500 error doesn't have anything to do with .htaccess
If you get the login screen that means your .htaccess file is working
ok. If you put in a pair and it is wrong the login screen will come back
up or if you do it a bunch you'll get a 'Authorization required" error (
not 500 ) A 500 error means that there is a problem executing your
script. Lokk in your apache error log to see what the error is. Could be
a script problem or it could be a permissions problem.
-----Original Message-----
From: Matt Mencel [mailto:MR-Mencel@;wiu.edu]
Sent: Thursday, October 24, 2002 10:14 AM
To: [EMAIL PROTECTED]
Subject: [vqadmin] 500 Error in IE6
Hi...I hope this doesn't turn out to be a dumb question but...
This is on OpenBSD 3.2 (latest snapshot...compiled a few nights ago)
I've installed vpopmail (latest development 5.3.8) and vqadmin (latest
stable 2.3.2). I followed all the vqadmin INSTALL instructions. The
web user on OpenBSD is 'www', and the web documents are in
/var/www/conf, /var/www/htdocs, /var/www/cgi-bin, etc...
In /var/www/cgi-bin/vqadmin my .htaccess file is chmod 644 and chowned
www:www. In /var/www/conf/vqadmin.passwd I created a test user and
password.
When I browse to the vqadmin.cgi file through IE6 I get the login
prompt. I put in the name/password pair and get error 500. I've tried
chmod 600 and 755 on the .htaccess file. I've also tried chowning the
vqadmin.passwd to the web user (www). At this point I'm pretty much at
a loss where to go next. Any help would be appreciated.
Thanks,
Matt