cgi bin - Complex cgi script works, but test.cgi doesn't -
i have 2 cgi files in same cgi-bin folder. 1 complex 300hundread lines script works fine, when comes 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 wrote web page using perl!</h1>"; print "</body></html>";
the web page return 500 internal server error...
why?:(
edit: ok, problem solved on 1 server, cgi works fine. but...
i'm trying make cgi-scripts work on server , seems no matter keep getting "internal server error" message , nothing in error log. suggestions?
two possibilities come mind:
- your simple script not have execute privilege set
test.cgi
special name redirected elsewhere server configuration
can run test.cgi
command line?
Comments
Post a Comment