Go Back   Wiki NewForum | Latest Entertainment News > Career Forum & Tips > Tech Forum & Tutorial > Oracle Database, SQL, Application, Programming


How to install Perl scripts on Internet Information Server


Reply
Views: 1197  
Thread Tools Rate Thread
  #1  
Old 08-09-2010, 12:15 PM
bholas bholas is offline
Award Winner
 
Join Date: Apr 2010
Posts: 4,977
Default How to install Perl scripts on Internet Information Server

Trying to get that cool Perl script to run on your Internet Information Server? Although it does not ship with built-in support for executing Perl scripts, it's easy enough to add Perl support to Internet Information Server.
Once the Perl interpreter is installed, you should be able to place Perl CGI scripts in any scripts directory, such as the default /scripts scripts directory.
You can also create a new scripts directory, named cgi-bin for example, by
  • physically creating an empty directory on the hard drive,
  • adding it to the Internet Information Server manager and
  • enabling the Execute attribute (Script attribute in Microsoft IIS 4.x).

Adding Perl support to Internet Information Server
  • Make sure Internet Information Server is properly installed and functioning.
  • Download and install Perl for Windows:
    ActiveState Perl for Win32
  • Configure Perl script maps:

    If using Internet Information Server 1.x, 2.x or 3.x:
    Update the registry as follows:
    • Start regedt32.exe and open

      HKEY_LOCAL_MACHINE\
      SYSTEM\CurrentControlSet\
      Services\W3SVC\Parameters\
      ScriptMap
    • Select "Add Value" from the "Edit" menu.
      Set "Value Name" to .pl
      Set "Data type" to REG_SZ
      Set "String value" to:
      \perl.exe %s %s

      For example, if you installed Perl in C:\PERL, type

      c:\perl\bin\perl.exe %s %s

    If using Internet Information Server 4.x:
    • Open "Internet Service Manager" for Microsoft IIS 4.x
    • Right click on the web server entry under the "Internet Information Server" folder and select "Properties"
      NOTE: This will map the .pl file extension to the Perl interpreter on all directories under the selected web server. To enable Perl scripts on just a single virtual directory, select that directory instead and go to its "Properties".
    • Select "WWW Service" under "Master Properties" and click on "Edit..."
    • Change to the "Home Directory" tab
    • Click on "Configuration..."
    • Select ".pl" entry (or add one) and click on "Edit"
    • Set "Executable" parameter to:

      \perl.exe %s %s

      For example, if you installed Perl in C:\PERL, type

      c:\perl\bin\perl.exe %s %s
    • Apply changes and close "Internet Service Manager"
  • Restart all Internet Information Server services and/or restart the server machine.


Reply With Quote
Reply

Tags
website tips

New topics in Oracle Database, SQL, Application, Programming





Powered by vBulletin® Version 3.8.10
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
WikiNewForum)