Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
Just another Perl shrine
 
PerlMonks  

Re: Perl & Personal Web Server

by dvergin (Monsignor)
on Mar 02, 2001 at 05:03 UTC ( #61721=note: print w/ replies, xml ) Need Help??


in reply to Perl & Personal Web Server

PWS can run Perl cgi scripts.

How does PWS know where Perl is?
On Windows 98 you need to make an entry in the Windows Registry. First make a back-up copy. Then fire up RegEdit and go to

HKEY_LOCAL_MACHINE \System \CurrentControlSet \Services \W3SVC \Parameters \Script Map
and add a new entry:    .pl = C:\Perl\bin\Perl %s %s
...or wherever Perl lives on your machine. I have seen the following entry recommended instead but I have not tried it:    .pl = C:\Perl\bin\PerlIS.dll
In addition, I have read of a method that involves modifying the hash-bang line but I don't use that because I'd just have to change it before uploading to my server.

The other thing you need to do is set up a cgi directory in PWS. Bring up the PWS admin window, click on Advanced, and then on Add... In the directory you set up, specify the Execute option. (You can have as many Execute directories as you want.)

That should do it. Any more questions, just ask.


Comment on Re: Perl & Personal Web Server
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://61721]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (10)
As of 2014-04-18 21:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (472 votes), past polls