Last Updated: September 14, 2001
| ASP - Active Server Pages |
Apache::ASP
Apache::ASP provides an Active
Server Pages port to the Apache Web Server and enables developing of dynamic web
applications with session management and embedded Perl code.
|
NOTE: The only type of ASP scripts that are supported by Apache::ASP is ASP code already written in Perl. In order for NT/Windows/IIS ASP pages written in VBScript to work using Apache::ASP, the ASP code must be rewritten in Perl. |
Installation
Connect to your Virtual Server via telnet or SSH and do the following.
Install The mod_perl Apache Module.
Install the perl-lwp
Pre-Packaged
Perl5 Module.
Install the Apache::ASP Perl module. Follow the directions that correspond to your Virtual Server O/S.
Modify your web server configuration file (~/www/conf/httpd.conf) to make a place for Apache::ASP to reside:
<Files ~ "\.asp$"> ## tell Apache to give .asp files to mod_perl SetHandler perl-script ## tell mod_perl to give .asp files to Apache::ASP handler PerlHandler Apache::ASP ## set global home PerlSetVar Global /tmp ## set state home (each ASP application has its own ## unique state directory) PerlSetVar StateDir /tmp/test_app ## use strict PerlSetVar UseStrict 1 ## debug information PerlSetVar Debug 1 </Files>
Restart your web Server
%restart_apache
Make a simple Apache::ASP page and place it in your ~/www/htdocs directory:
<html>
<head>
<title>Apache::ASP Test</title>
</head>
<body>
For loop incrementing font size: <p>
<% for(1..5) { %>
<!-- iterated html text -->
<font size="<%=$_%>" > Size = <%=$_%> </font> <br>
<% } %>
</body>
</html>
Fetch the page with a web browser and watch it work!
Copyright © 1996-2001, Last Modified: 1 October 2001. A Little Technology Shoppe, LLC (ALTS.NET)®. All rights reserved. All brand names and product names used on these web pages are trademarks, or trade names of their respective holders.