Gossamer Forum
Home : General : Perl Programming :

about Active Perl with MS Personal Web Server

Quote Reply
about Active Perl with MS Personal Web Server
Hi !

I installed MS Personal Web Server (win 98) first then installed Active Perl - PWS seems working well but when I call the hello_world.pl (or .cgi) on the browser then I get the file download. How do I know what the first line of the script is ?

Perl was installed in C:\Perl

Will I get the simple script works on browser ? I double click to file hello_world.pl and MS DOS window popup but It closed very quick so I cannot see the text on screen. Any idea ?

Thanks for any help

Quote Reply
Re: about Active Perl with MS Personal Web Server In reply to
You shouldn't need to set the Shebang (#!/usr/local/perl/) with PWS as .pl files are automatically associated with perl when you install ActivePerl.

What you need to do is configure a directory in the PWS Advanced section so it can execute scripts. Then place your script in that directory and run it from there.

Eg: make a dir c:\inetpub\cgi-bin, then, in PWS, add that dir to the folder tree and allow script execution, place your script in that dir and you should be able to call http://localhost/cgi-bin/script.pl

- Mark

Astro-Boy!!
http://www.zip.com.au/~astroboy/