Subversion Repositories DevTools

Rev

Rev 1293 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>IIS configuration</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="The Codestriker Guide"
HREF="book1.html"><LINK
REL="UP"
TITLE="Installation"
HREF="c49.html"><LINK
REL="PREVIOUS"
TITLE="Apache webserver configuration"
HREF="x248.html"><LINK
REL="NEXT"
TITLE="Upgrading Codestriker"
HREF="x326.html"></HEAD
><BODY
CLASS="SECT1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>The Codestriker Guide: Version 1.9.3</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="x248.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 2. Installation</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="x326.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="IIS-CONFIGURATION"
>2.5. IIS configuration</A
></H1
><P
>        This section deals with deploying Codestriker under IIS, as
        a CGI script.  <SPAN
CLASS="emphasis"
><I
CLASS="EMPHASIS"
>At the time of writing, the current version of ActivePerl (5.8.8.817)
        contains a version of CGI.pm which is broken for IIS deployments.
        Use <A
HREF="http://downloads.activestate.com/ActivePerl/Windows/5.8/ActivePerl-5.8.7.813-MSWin32-x86-148120.msi"
TARGET="_top"
>http://downloads.activestate.com/ActivePerl/Windows/5.8/ActivePerl-5.8.7.813-MSWin32-x86-148120.msi</A
> instead.</I
></SPAN
>
        These instructions were performed on a
        Windows 2000 machine, so hopefully this provides an indication
        as to what needs to be performed for other Win32
        configurations.  Startup the IIS configuration application by
        going to "Control Panel" -&#62; "Administrative Tools" -&#62;
        "Internet Services Manager".  Like the Apache configuration,
        the webserver needs to be told where to find the Codestriker
        CGI script, and where to find the associated CSS and html help
        files.
      </P
><P
>        Assuming you are deploying Codestriker under the "Default Web
        site", right-click this entry on the left hand frame of the
        window, and select "New" -&#62; "Virtual Directory" -&#62; "Next".
        Enter in <TT
CLASS="FILENAME"
>codestriker</TT
> into the Alias
        textfield, then click "Next".  Then enter the
        <TT
CLASS="FILENAME"
>cgi-bin</TT
> directory of your unpacked
        Codestriker distribution into the "Directory" textfield, then
        click "Next".  Make sure the "Execute" access permission
        checkbox is selected, then click "Next", click then "Finished".
      </P
><P
>        It is important that the <TT
CLASS="FILENAME"
>codestriker</TT
>
        virtual directory is setup to be able to execute Perl scripts.
        Right-click the <TT
CLASS="FILENAME"
>codestriker</TT
> virtual
        directory and select "Properties".  Click on the
        "Configuration..." button.  Check that there is an entry for
        <TT
CLASS="FILENAME"
>.pl</TT
> files, and that the "Executable Path"
        entry looks like (substitute the path to your local
        Perl installation):
        <PRE
CLASS="PROGRAMLISTING"
>C:\Perl\bin\perl.exe "%s" %s     
        </PRE
>
        If there
        is no mapping for <TT
CLASS="FILENAME"
>.pl</TT
> files (which would
        be odd, since the ActiveState install does this for you
        automatically), add a new entry in with the above setting,
        limited to "GET,HEAD,POST".  Make sure you enter the quotes,
        as shown above.
      </P
><P
>        Follow a similar process for the
        <TT
CLASS="FILENAME"
>codestrikerhtml</TT
> directory.  Right-click
        "Default Web site" and select "New" -&#62; "Virtual Directory" -&#62;
        "Next".  Enter in <TT
CLASS="FILENAME"
>codestrikerhtml</TT
> into the
        Alias textfield, then click "Next".  Then enter the
        <TT
CLASS="FILENAME"
>html</TT
> directory of your unpacked
        Codestriker distribution into the "Directory" textfield, then
        click "Next".  Make sure the "Read" and "Browse" access permission
        checkboxes are selected, then "Next", then "Finished".
      </P
><P
>        Ensure the security for the two virtual directories
        <TT
CLASS="FILENAME"
>codestriker</TT
> and
        <TT
CLASS="FILENAME"
>codestrikerhtml</TT
> are appropriate for your
        site.  Right-click on each directory, and select "Properties",
        then the "Directory Security" tab.  Click the "Edit..." button
        and make the appropriate changes for your deployment.
      </P
><P
>        Right-click "Default Web site" and select "Start" if the
        website is not currently running, and test it.
      </P
><P
>        Further information on setting up IIS with Perl CGI can be
        found from <A
HREF="http://support.microsoft.com/kb/q245225"
TARGET="_top"
>http://support.microsoft.com/kb/q245225</A
>.
      </P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="x248.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="book1.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="x326.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Apache webserver configuration</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="c49.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Upgrading Codestriker</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>