
January 4th, 2000, 01:36 PM
|
|
Registered User
|
|
Join Date: Sep 1999
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Hi, I am running into a very frustating problem. I was running a lot of complicated perl-cgi scripts and they were all working perfectly fine. I had to move to a new server which I set up the other day (Apache 1.3.9).
I moved all the scripts over and then tried them. They all give me 500 internal error. I checked the log file and it says "premature end of script header"!!
I checked:
1. perl path (correct)
2. Correct header print ("Content-type: text/html")
3. There is a line after the header print.
4. Perl is 5.00503
I even tried a very easy script and it is also giving me the same error.
#!/usr/bin/perl
print "Content-type: text/htmlnn";
print "Hello";
This runs fine from the command line with no error, but via the web, it's 500 internal error because of "premature end of script" URL
I do not think this is the web server problem.(?)
Please help. Thanks.
[This message has been edited by vbedceo (edited January 04, 2000).]
[This message has been edited by vbedceo (edited January 04, 2000).]
|