Setting up Perl, Apache 1_3_6, Windows 95

by "Aidan Whitehall" <aidan(at)netprofits.freeserve.co.uk>

 Date:  Thu, 9 Sep 1999 18:15:09 +0100
 To:  <hwg-servers(at)hwg.org>
  todo: View Thread, Original
I found the page at Clueless Lou's ( http://www.visca.com/clueless/ ) and
thought I'd have a go at dabbling with Perl scripts.

Already having Apache 1_3_6 installed at c:\Apache, I downloaded and
installed DCOM (whatever that is) from Microsoft, rebooted and then
installed ActivePerl (519?) into c:\Perl, accepting all the defaults.

Typing "perl -v" at the MS-DOS command line returns "This is perl ... ", so
it looks like it's installed OK.

I'm having problems knowing what to do next.  The instructions at Clueless
Lou's say that you need to make the following alterations to Apache's
httpd.conf file:


1) At line 217, change:
ServerAdmin you(at)your.address to:
ServerAdmin webmaster(at)your_domain.com.

2) At line 232, uncomment (erase the # symbol), and change it to:
ServerName www.your_site.com.

3) At line 239, change:
DocumentRoot "C:/apache/htdocs" to:
DocumentRoot "C:/usr/etc/htdocs/your_site"

4) At line 264, change:
<Directory "c:/apache/htdocs"> to:
<Directory "c:/usr/etc/htdocs/your_site">

5) At line 303, you might want to change:
DirectoryIndex index.html to:
DirectoryIndex  index.html index.htm index.cgi index.shtml

6) At line 458, change:
ScriptAlias /cgi-bin/ "c:/apache/cgi-bin/" to:
ScriptAlias /cgi-bin/ "c:/usr/etc/htdocs/your_site/cgi-bin/"

7) At lines 464, change: <Directory "c:/apache/cgi-bin"> to:
<Directory "c:/usr/etc/htdocs/your_site/cgi-bin">

8)Uncomment line 606 (erase the # symbol):
AddHandler cgi-script .cgi


and that's when my mind started to go all cloudy ...  ;-)


At the moment, going to the address http://127.0.0.1/ in a browser takes you
to c:\Apache\htdocs\index.html, and I want it to stay that way.  It looks
like the instructions will make it work differently.  Does anyone know which
lines should be altered, and to what?

And will Perl scripts go in the c:\Apache\cgi-bin\ folder, or in the
c:\Perl\bin folder?

And what will the shebang line be?


Sorry for all the (probably dumb) questions - I've never used a Unix machine
before, and reading lines that talk about "/usr/bin/something" just goes
over my head.  As soon as I can get it set up right, I can go through the
tutorials at www.cgi101.com - that's my goal.


Thanks if you can help any.  The webpages I've read so far don't make much
sense.

--
Aidan Whitehall  <aidan(at)thenetprofits.co.uk>  ICQ# 7298314
the net profits, North West England
Corporate Website Design and Tuition
Tel & Fax: +44 (0) 1695 50050

the force behind ...
http://www.softwaresavings.co.uk/
http://www.fairbanks.co.uk/
http://www.gardenmagic.co.uk/
http://www.maharishischool.com/

HWG: hwg-servers mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.