Closed Thread Icon

Topic awaiting preservation: perl on Apache for nt (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=11934" title="Pages that link to Topic awaiting preservation: perl on Apache for nt (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: perl on Apache for nt <span class="small">(Page 1 of 1)</span>\

 
Osaires
Paranoid (IV) Inmate

From: oslo, Norway
Insane since: Aug 2001

posted posted 12-04-2001 02:05

I want to learn more about perl, so the first step is to install it on my web server (apache), well i have activeperl installed in c:\perl,
how can make it work with apache?

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 12-04-2001 05:33

You have to add the following block to your httpd.conf file

ScriptAlias /cgi-bin/ "d:/path/to/your/cgi-bin/folder"
<Directory "d:/path/to/your/cgi-bin/folder">
AllowOverride All
Order allow,deny
Allow from all
</Directory>

After that modify shebang line in your CGI scripts (that's the first line, starting with #!) to look like this:

#!perl

And last insure that c:\perl\bin folder is added to the PATH environment variable, or you'll have to write full path in the shebang line, like this:

#!c:/perl/bin/perl


« BackwardsOnwards »

Show Forum Drop Down Menu