[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Debian sarge 3.1\apache2 not surpport cgi



Hey,

I net installed debian sarge 3.1 with apache 2 on it.

below is the files in /etc/apache2/mods-enabled

###############
lrwxrwxrwx 1 root root 36 May 30 12:42 cgi.load -> /etc/apache2/mods-available/cgi.load
lrwxrwxrwx 1 root root 33 May 30 12:42 mod_python.load -> ../mods-available/mod_python.load
lrwxrwxrwx 1 root root 37 May 30 12:47 perl.conf -> /etc/apache2/mods-available/perl.conf
lrwxrwxrwx 1 root root 37 May 30 12:47 perl.load -> /etc/apache2/mods-available/perl.load
lrwxrwxrwx 1 root root 37 May 30 12:42 php4.conf -> /etc/apache2/mods-available/php4.conf
lrwxrwxrwx 1 root root 37 May 30 12:42 php4.load -> /etc/apache2/mods-available/php4.load
lrwxrwxrwx 1 root root 40 May 30 12:42 userdir.conf -> /etc/apache2/mods-available/userdir.conf
lrwxrwxrwx 1 root root 40 May 30 12:42 userdir.load -> /etc/apache2/mods-available/userdir.load
lrwxrwxrwx 1 root root 41 Jun 1 16:51 zembperl.conf -> /etc/apache2/mods-available/zembperl.conf
lrwxrwxrwx 1 root root 41 Jun 1 16:51 zembperl.load -> /etc/apache2/mods-available/zembperl.load
############

The result of which perl is "/usr/bin/perl"

I wrote the following cgi script for testing

###########
#!/usr/bin/perl
print "Content-type: test/html\n\n";
print "Show Me the monkey";
############

When I browser to the file by going to http://localhost/~lover/test.cgi
the screen shows me the source code.

Well uploading the script to remote server the result is "Show Me the monkey"

Can any of you give me a hint how to make my machine support the cgi please ? Any hint will be highly appreciated!

Thanks a lot in advance
Smile

Reply to: