Click to See Complete Forum and Search --> : cgi scripts not execuring?


pdxandy
06-10-2003, 04:29 PM
I dont think cgi scripts are executing on RH9.0. Keep getting 500 internal server error message. Click me for more details (http://forums.ikonboard.com/support/ikonboard.cgi?;act=ST;f=62;t=7866)

Any idea's? Yes I am a newbie... kinda

ph34r
06-10-2003, 04:32 PM
Could be a lot of things. Is the file executable, and executable by the process that apache runs as? What's showing in your error log? Do sample scripts work?

pdxandy
06-10-2003, 04:41 PM
Apache error log says "Premature end of script headers:<script name>

No scripts work. I even tried putting an index.htm file there (in cgi-bin) and get the same error. I have tried 3 scripts, all *.cgi and I get the 500 error on each of them

dchidelf
06-10-2003, 06:02 PM
Sometimes this means that your cgi scripts are outputing a blank line before they print the Content-type header.


#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "Hello\n"


Some cgi packages handle this for you, but you may need to do it manually.

pdxandy
06-10-2003, 06:51 PM
I am inclined to thing that this is a config problem on the server. Nobody else is having this problem installing Ikonboard. And unfortunatly I just noticed I posted in the rong area, hehe.

http://forums.ikonboard.com/support/ikonboard.cgi?;act=ST;f=62;t=7866