PDA

View Full Version : GCI on localhost(XP)


onore
11-26-2003, 11:17 AM
Hello everyone,
i'm having troubles with running CGI from my IIS enabled XP pc .I have installed Active Perl on my pc it's ok . created cgi-bin .placed the cgi script into that folder and when running forms from localhost ( not a web site) and clicking on submit browser brings up cgi file in browser page ....do i have to amnd default locations of perl etc...please help .

dswimboy
11-26-2003, 06:34 PM
you must tell IIS to execute .pl and .cgi scripts. here are the steps:

1. Open the properties window of your Default Website.

2. Choose the Home Directory tab.

3. Click the Configuration button.

4. Add an entry to the list with the following settings:
Executable: path to perl.exe and %s %s.
mine looks like this C:\Perl\bin\perl.exe %s %s
the extension sould be .pl or .cgi, whatever scripts you use.

5. click okay, okay, okay, apply, apply, etc.

6. run your scripts!

onore
11-28-2003, 10:45 AM
Thanks - i folowed your instructions but whatever i did to configuration button it didn't bring up a window where i can specify an extentions etc..instead Execute permissions filed stays scripts only -- is it smth to do with permissions ?
Warmest regards

Originally posted by dswimboy
you must tell IIS to execute .pl and .cgi scripts. here are the steps:

1. Open the properties window of your Default Website.

2. Choose the Home Directory tab.

3. Click the Configuration button.

4. Add an entry to the list with the following settings:
Executable: path to perl.exe and %s %s.
mine looks like this C:\Perl\bin\perl.exe %s %s
the extension sould be .pl or .cgi, whatever scripts you use.

5. click okay, okay, okay, apply, apply, etc.

6. run your scripts!

dswimboy
12-11-2003, 04:16 AM
on the 'home directory' tab: execute permissions should be set to Executables and Scripts.

sorry.