notooth Posted June 13, 2005 Share Posted June 13, 2005 I have a file index.pl in cgi-bin folder, and it works fine on the terminal. But when I execute it on the web browser, I got the Internal Server Error. I checked the error_log file, and it said: Premature end of script header: index.pl.Can anyone help me solve this issue? Link to comment Share on other sites More sharing options...
notooth Posted June 19, 2005 Author Share Posted June 19, 2005 Can anyone help?When I type perl index.pl on the terminal, it prints out the output. But when I executes it via web browser, I got the 500 Internal Server Error . Link to comment Share on other sites More sharing options...
dman Posted June 19, 2005 Share Posted June 19, 2005 (edited) Try setting output. Place this in code before you output any HTML or it will try to write to STDOUT.print "Content-type: text/html\n\n"; Edited June 19, 2005 by dman Link to comment Share on other sites More sharing options...
notooth Posted June 19, 2005 Author Share Posted June 19, 2005 It worksssss Thanks for your help. Link to comment Share on other sites More sharing options...
dman Posted June 19, 2005 Share Posted June 19, 2005 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now