I have two cgi files in the same cgi-bin folder. One complex 300hundread lines script works fine, but when it comes to this simple cgi-script:
#!/usr/bin/perl -w
print "Content-type: text/html\n\n";
print "<html><head>";
print "<title>CGI Test</title>";
print "</head>";
print "<body><h1>I just wrote a web page using Perl!</h1>";
print "</body></html>";
the web page will return an 500 Internal Server Error...
Why?:(
EDIT:
Ok, the problem was solved on one server, the cgi works fine. But...
Now I'm trying to make the cgi-scripts work on another server and it seems that no matter what I do I keep getting the "Internal server error" message and nothing in the error log.
Any suggestions?
I've talked to the hosting firm and they said that they don't offer any "CGI/PERL" sript hosting...
So , problem solved... (kind of).
LESSON: Always read carefully before buying a hosting package :D