Mailing List Archive

Support open source code!


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

RE: tlug: apache and cgi-scripts



Hi all,

On 23-Feb-98 Marcus Metzler wrote:
>I am using the apache httpd server and am trying to enable
>cgi-script execution. 

An easy way to test whether cgi is working is a simple script
like this:

#!/usr/local/bin/perl

print "Content-Type: text/html\n\n";
print "<HTML><HEAD><TITLE>Help!</TITLE></HEAD>";
print "<BODY BGCOLOR=white>";
print "This is my first time!\n";
print "<P>";
print "<B>Please, be gentle...</B>\n";
print "</BODY></HTML>";
exit;

Make sure that the #! line points to where perl is on your
system. If this doesn't work then check the srm.conf for

# To use CGI scripts:
AddHandler cgi-script .cgi
AddHandler cgi-script .pl

Once the simple script is working then you can go on to
debugging your more complicated scripts.

HTH

Jim S.

---------------------------------------------------------------
Next TLUG Nomikai: 11 March Wed 1998 Tengu TokyoEkiMae 19:30
Chuo-ku, Kyobashi 1-1-6, EchiZenYa Bld. B1/B2 03-3275-3691
Next TLUG Meeting: 11 April 1998 Saturday, Tokyo Station
Featuring Tague Griffith of Netscape i18l talking on source code
---------------------------------------------------------------
a word from the sponsor:
TWICS - Japan's First Public-Access Internet System
www.twics.com  info@example.com  Tel:03-3351-5977  Fax:03-3353-6096



Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links