Dear friends
I have problems while i try to execute a script.cgi that contains this code:
#!/usr/bin/perl
print "content-type: text/html";
print "<HTML>\n";
print "<HEAD>\n";
print "<TITLE>Aprendiendo a crear CGIs</TITLE>\n";
print "</HEAD>\n";
print "<BODY>\n";
print "Enhorabuena. Acabo de crear un CGI ¡y funciona!\n";
print "</BODY></HTML>\n";
I have put it in cgi-bin directory an chmod 755, but it doesn't run :S
I have tested it in shell mode by ssh client and it's OK.
I think mod_cgi and mod_perl don't run correctly. Any idea?
Sorry about my english because i don't speak it correctly.
I have problems while i try to execute a script.cgi that contains this code:
#!/usr/bin/perl
print "content-type: text/html";
print "<HTML>\n";
print "<HEAD>\n";
print "<TITLE>Aprendiendo a crear CGIs</TITLE>\n";
print "</HEAD>\n";
print "<BODY>\n";
print "Enhorabuena. Acabo de crear un CGI ¡y funciona!\n";
print "</BODY></HTML>\n";
I have put it in cgi-bin directory an chmod 755, but it doesn't run :S
I have tested it in shell mode by ssh client and it's OK.
I think mod_cgi and mod_perl don't run correctly. Any idea?
Sorry about my english because i don't speak it correctly.