Configuring Perl / CGI support in IIS6 2004-11-4 15:05:17 Read 110 times First, check system environment configuration: Operating system: Windows Server 2003 DataCenter / Enterprise / Standard / Webserver component configuration: IIS6.0 (confirmation Add / Remove Windows Components -> Application -> IIS) Operation Permissions in Control Panel: Local Administrator, 3rd parties support: Install ActiveState ActivePerL to C: / Perl (ActiveState ActivePerl can be at http: // www) .activestate.com Download) Configuring IIS: Run IIS Manager by any of the following ways: 1. Start -> Administrative Tools -> IIS Manager2. Start -> Run ->% SystemRoot% / System32 / InetSrv / Iis.msc ( % SystemRoot% is the directory where the operating system is located, such as: c: / windows) Click Service Extensions, click Add New Service Extensions on the Add A New Web Service Extension ... on the left side of the main window, as shown below: New Web Service Extension In the dialog, enter custom ID in Extension Name, such as: CGI EXT, click Add in Required Files, enter c: /perl/bin/perl.exe "% s"% s, and determine the following " Set status to allowed options: In the default IIS release directory C: / INETPUB (if the operating system is installed in other partitions, this directory may be different, such as: d: / inetpub) to establish a CGI-bin subdirectory; in Default A virtual directory is created in the web site. The directory points to C: / INETPUB / CGI-BIN and sets in directory rights as shown below: Open the Properties of the CGI-BIN virtual directory, confirming the PLX extension in the Application Configuration. PL extension has been mapping: Script configuration: It is recommended to modify all .cgi scripts for .pl In the script file,: #! / Usr / bin / perl change to #! C: /perl/bin/perl.exe any / home / user change to c: / home / user or c: // Home // User After completing the above configuration, your Perl script will be able to run on IIS 6.
Configuring PHP (CGI) support in IIS6 2004-11-4 15:14:37 Read 129 When you install php 4 in Windows Server 2003, if you use PHP4.x's binary installer, you will set IIS extensions at the final setting of the installation process. One step will appear an error that can be found in an OCX, causing the PHP in IIS6 (of course, there is no way to install with the ZIP package). The following describes how to manually set a PHP extension in IIS6. First, check the system environment configuration: Operating system: Windows Server 2003 DataCenter / Enterprise / Standard / Webserver Component Configuration: IIS6.0 (confirmed Add / Remove Windows Components -> Application -> IIS) Operations: Local in the Control Panel Administrator 3-Party Support: Install PHP to C: / PHP (PHP 4.x can be downloaded in http://www.php.com) Configuring IIS: Run IIS Manager by any of the following ways: 1. Start -> Administrative Tools -> IIS Manager2. Start -> Run ->% systemroot% / system32 / inetsrv / Iis.msc (% systemroot% is a directory where the operating system is located, such as: C: / Windows Click Service Extensions, Click Add New Service Extensions on the left side of the main window, as shown below: New Web Service Extension dialog box, enter custom ID in Extension Name, such as: PHP EXT, Required Files Click Add, enter C: / PHP / PHP.exe, and determine the following "Set Status to ALLOWED" option is selected; in the default IIS release directory C: / INETPUB (if the operating system is installed in other partitions, This directory may be different, such as: d: / inetpub, establish a phpscript subdirectory; open the PHPScript Directory in the Default Web Site, click Create in Application Setting, generate a phpscript application (Note: Run permission is Scripts "ONL : Click Configuration to enter the Application Settings dialog box, check if there is .PHP project in Application Extensions, if you have, skip this step, if you don't add an extension maping: .php Application Extension is added. List: After completing the above configuration, your PHP script will be able to run on IIS 6 (running in PHPScript).