Mailing List ArchiveSupport open source code!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]tlug: apache and cgi-scripts
- To: tlug@example.com
- Subject: tlug: apache and cgi-scripts
- From: Marcus Metzler <mocm@example.com>
- Date: Tue, 24 Feb 1998 08:11:32 +0900
- Comments: Hyperbole mail buttons accepted, v3.18.1.
- Reply-To: tlug@example.com
- Sender: owner-tlug@example.com
Hi, I am using the apache httpd server and am trying to enable cgi-script execution. I edited the srm.conf file and added : ScriptAlias /cgi-bin/ /var/lib/httpd/cgi-bin/ as well as the access.conf, where I added: <Directory /var/lib/httpd/cgi-bin> AllowOverride None Options ExecCGI order allow,deny allow from all </Directory> Then I put the following into the server homepage: <!--#exec cgi="/cgi-bin/counter.cgi"--> counter.cgi: #!/usr/local/bin/perl $datecom = '/bin/date'; $date = `$datecom +"%r on %A, %B %d, %Y %Z"`; open (DATA, "counter.data"); $counter = <DATA>; close (DATA); $counter++; print "Content-type: text/html\n\n"; print "<p><b>The current time is:</b> <i>$date</i>\n"; print "<p><h2>You are visitor number $counter .</h2>"; open (OUTPUT, ">counter.data"); print (OUTPUT "$counter"); close (OUTPUT); I set all the permissions on the script and the counter.data file and I tested the script manually and it works, but it is not executed when the page is accessed. Any ideas whats missing? Marcus -- ----------------------------------------------- Dr. Marcus Metzler Department of Physics Toho University Miyama 2-2-1, Funabashi, Chiba 274 Japan e-mail : mocm@example.com ----------------------------------------------- --------------------------------------------------------------- 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
- Follow-Ups:
- RE: tlug: apache and cgi-scripts
- From: Jim Schweizer <schweiz@example.com>
Home | Main Index | Thread Index
- Prev by Date: tlug: I am sorry things getting out of hand.
- Next by Date: Re: tlug: TLUG server as learning tool
- Prev by thread: tlug: I am sorry things getting out of hand.
- Next by thread: RE: tlug: apache and cgi-scripts
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links