This article only discusses how to install ActivePerl in WindowsNT4.0. Environment used in this article: Perl
Version: 1.0
Author: He Zhiqiang (hhzqq@sina.com)
Time: 200000003.16
This article only discusses how to install ActivePerl in Windows NT 4.0.
Environment used in this article:
Windows NT 4.0
Option packs 4.0
SP5
ActivePerl 522(APi522e.exe)
I. software download
Http://www.activestate.com/ActivePerl/download.htm
II. software installation
1、install api522e.exe using the default configuration, which is installed in C: \ Perl by default;
2. open the Internet service manager, select the default Web site, and view the properties. on the home directory page, click configure, and you will find that there are two more in the application ING:
The executable path of the extension
. Pl C: \ Perl \ bin \ Perl.exe % s PUT, DELETE
. Plx C: \ Perl \ bin \ perlis. dll PUT, DELETE
3. I added a virtual directory in IIS, alias: perl, actual path: D: \ HZQ \ PERL, with Read, script, execution, and directory browsing permissions;
4. I created a file test. pl in D: \ HZQ \ PERL with the following content:
Print "Perl is OK! ";
Then I enter http: // localhost/perl/test. pl in the browser and the following error occurs:
CGI error
The specified CGI application does not run properly because it does not return the complete HTTP title. The returned title is:
Perl is OK!
Then I changed test. pl:
Print "Content-Type: text/html \ n ";
Print "Perl is OK! ";
Run successfully;
5. I also created a file test. plx in D: \ HZQ \ PERL. the content is as follows:
Print "Perl is OK! ";
Then, enter http: // localhost/perl/test. plx in the browser. an error window is displayed in the browser with the error message:
Internet Explorer cannot open Internet sites
Http: // localhost/perl/test. plx.
The information returned by the server is invalid or unidentifiable.
Then I changed test. plx:
Print "Content-Type: text/html \ n ";
Print "Perl is OK! ";
Run successfully;
6. Note that. pl is run in CGI mode, and. plx is run in ISAPI mode (the efficiency is much higher than that in CGI mode ).
Appendix:
ActivePerl Download
Http://www.activestate.com/ActivePerl/download.htm
ActivePerl Help
Http://www.activestate.com/ActivePerl/docs/