Gossamer Forum
Home : General : Perl Programming :

Perl and Personal Web Server 4.0

Quote Reply
Perl and Personal Web Server 4.0
Can anyone help with getting perl to work on a windows 98 SE computer running PWS as a web server. I have been to the microsoft site and they say that all you have to do is create new string key called ".pl" in the 'HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\W3SVC\Parameters\Script Map' registery key pointing to the the perl interpreter perl.exe. I did this but it still doesn't work?

Any suggestions?

Quote Reply
Re: Perl and Personal Web Server 4.0 In reply to
Make sure you have downloaded the latest version of the Binary build (aka ActivePerl) from ActiveState (not perl.com).

http://www.activestate.com

Also, by default, when ActivePerl is installed, it only associates with *.pl files, not *.cgi. You could associate *.cgi, but it's easier to simply rename your extensions to .pl.

Finally, make sure that you have actually set up a directory for cgi-scripts and set the appropriate permissions within PWS.

Hope this helps.

- Mark


Astro-Boy!!
http://www.zip.com.au/~astroboy/
Quote Reply
Re: Perl and Personal Web Server 4.0 In reply to
Yes, I have done that.

I am using the latest ActivePerl. When i installed it though it only associate .pl files with windows explorer and not with PWS. I had to manually go and create the registry entries which makes the associations.
But even once i did this it still didn't work.

I have also already created a virtual directory for the scripts with proper permissions.

Thanks though for the reply

Quote Reply
Re: Perl and Personal Web Server 4.0 In reply to
I don't have PWS on this particualr machine (at work) but I don't recall having to associate *.pl files with PWS...

Exactly what is happening when you try and call the script in the web browser? Are you getting 500 errors? Just source code? What?

- Mark


Astro-Boy!!
http://www.zip.com.au/~astroboy/
Quote Reply
Re: Perl and Personal Web Server 4.0 In reply to
It's not really that dificult to associate files, and you don't have to create registry entries (directly) through Registry Editor.

I'm using Windows ME, so I'm sure this differs slightly in Win95/98/NT/2000. On a .cgi file, hit 'shift' + right-click. Choose 'Open with' and then 'Choose Program'. A dialogue box opens with a list of programs installed on your computer. Click the checkbox at the bottom of the dialogue ("Always use this program to open these files."). Scroll through the list of prgrams and if Perl is listed, click it; if not, choose "Other" and browse through your hard disk for perl.exe. Then do a couple 'OKs'.

Happy Coding,

--Drew
http://www.FindingHim.com