Internet Information Server (IIS) can be used instead of OptiPerl's internal server or apache in a windows NT/2000/XP/2003 Server environment.

 

These windows versions ship with IIS. To install go to Control Panel / Add remove programs / Add Windows Components and check the checkbox "Internet Information Services". Install all of it's components.

 

After installing, find the folder c:\inetpub\wwwroot and create in it the folder cgi-bin.

 

Now go to Control Panel / Administrative Tools / Internet Information Services and note the name of your computer. Expand this node and then expand the node "Default Web Site". You will see as a node the newly created folder cgi-bin. Select it and press "Properties".

 

On the tab "Directory / Application Settings" press once the "Create" button and then press the "Configuration" button. From the new dialog under the tab "Mappings" press the button "Add" (or "Edit" if the .pl extension already exists). In the "Add/Edit Application Extension Mapping" window, enter the following:

 

Executable: C:\Perl\bin\perl.exe "%s" %s

Extension: .pl

Verbs - Limit to: GET,HEAD,POST

Script engine: Yes

Check that file exists: No

 

Repeat the above for the extension .cgi and press OK to save settings.

 

Go to Control Panel / Administrative Tools / Personal Web Manager and press the button "Start" if the service has not already started. Press the link in the window that starts with http:// to test if it is running (e.g. http://computer). Or open your browser and enter http://127.0.0.1/ as an address.

 

To test that everything is OK, copy all the examples of OptiPerl from \program files\optiperl\webroot\cgi-bin to the folder \inetpub\wwwroot\cgi-bin. The scripts should be accessible by entering in your browser http://computer/cgi-bin/script.cgi (replace computer with the name of your computer shown in the window).

 

To set up OptiPerl, go to Tools / Options / External Server and enter:

 

Document Root: c:\inetpub\wwwroot

Aliases: Leave empty

 

Load now a cgi script from the folder c:\inetpub\cgi-bin and run it. Make sure you have selected the option "Server  /Run with server".

 

All scripts you create must be saved in the above folder. Note that if you have enabled IIS, then the internal server of Optiperl will not work. You can easily start and stop IIS from the window Control Panel / Administrative Tools / Personal Web Manager.

 

Using IIS is recommended if you have a web page that uses FrontPage extensions and want to test it offline.

 

 

 

Top  Previous  Next