PDA

View Full Version : [ubuntu] perl script



svijay02
April 1st, 2009, 02:15 PM
Hello;

Iam new to apache web server and perl. Iam trying to run a simple cgi script from my browser but instead of executing the script the browser is asking me to save as.

This is my simple script:

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

This script works fine in the terminal;

Please help;

cain171562
April 1st, 2009, 05:22 PM
Sounds like you have not setup your apache config to run cgi scripts correctly.