Install ActivePerl under Windows NT 4.0

Source: Internet
Author: User
Tags window
Active|perl|window Version: 1.0
Author: He Zhiqiang (hhzqq@sina.com)
Time: 2000.03.16

This article only discusses how to install ActivePerl under Windows NT 4.0.
The environment used in this article:
Windows NT 4.0
Option Pack 4.0
SP5
ActivePerl 522 (APi522e.exe)
First, software download
Http://www.activestate.com/ActivePerl/download.htm
Second, the Software installation
1, double-click APi522e.exe for installation, using the default configuration, the default installation to C:\Perl;
2, open Internet Services Manager, select the Default Web site, view properties, in the Home Directory page, by configuration, you will find in the application mapping more than the following two:
Extension executable path row it
. pl C:\Perl\bin\Perl.exe%s%s put,delete
. PLX C:\Perl\bin\perlis.dll Put,delete
3, I added a virtual directory in IIS, alias PERL, the actual path is D:\HZQ\PERL, have read, script, execution and directory browsing permissions;
4. I created a file test.pl in D:\HZQ\PERL, which reads as follows:
Print "Perl is ok!";
Then I entered http://localhost/perl/test.pl on the browser and the following error occurred:
CGI Error
The specified CGI application is not functioning properly because it does not return the full HTTP header. The title it returns is:
Perl is ok!
Then I changed the test.pl into:
print "content-type:text/html\n\n";
Print "Perl is ok!";
Run successfully;
5. Similarly, I created a file test.plx in D:\HZQ\PERL, which reads as follows:
Print "Perl is ok!";
Then I entered HTTP://LOCALHOST/PERL/TEST.PLX in the browser, the browser pop-up an error window, the error message is:
Internet Explorer cannot open an Internet site
HTTP://LOCALHOST/PERL/TEST.PLX.
The information returned by the server is not valid or is not recognized
Then I changed the TEST.PLX into:
print "content-type:text/html\n\n";
Print "Perl is ok!";
Run successfully;
6. Please note. PL is run as a CGI,. PLX is run as an ISAPI (more efficient than a CGI method).


Report:
ActivePerl Download
Http://www.activestate.com/ActivePerl/download.htm
ActivePerl Help
http://www.activestate.com/ActivePerl/docs/



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.