Forum Moderators: coopster & phranque

Message Too Old, No Replies

Learning/setting up perl on XP and IIS - questions

localhost/.../.pl works localhost/..../.cgi doesn't

         

skibum

3:53 am on Jul 18, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Totally new to perl and trying to get started. I'm on XP Pro and IIS (whatever version came with XP), installed activeperl 5.61 Build 6.31 and installed (all options) it to run from network.

Scripts are saved in the localhost/scripts/ folder. A few simple scripts were tried with the .pl extension from that directory and they worked. When the extension is .cgi, the browser displays "%1 is not a valid Win32 application."

Is there something else that needs to be installed, or do .cgi files need to be stored in a different folder? Any insight much appreciated.

Knowles

3:20 pm on Jul 18, 2002 (gmt 0)

10+ Year Member



There is a setting that has to be set I am sure, just dont know what it is. Hopefully this bump will grab someones attention.

richlowe

3:25 pm on Jul 18, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Ran into the same problem. PL is set up as a file type to run perl when you install activeperl, but CGI is not. You need to go into the IIS manager and create the CGI file type the same as the PL file type. It should work then. (It's been a few months since I did this - this is from memory so forgive me for not being totally detailed).

Richard Lowe