Home Contact Us Search

[ Order a Server ] [ Server Support ]


[ Getting Started ] [ Server Help ] [ Add on Help ] [ Solution ] [ Trouble Shooting ]

PLEASE NOTE, THIS IS VERY OLD ARCHIVE INFORMATION AND MAY NOT FUNCTION ON NEW SERVERS

[ DNS ] [ Email ] [ Server Admin ] [ Web Server ]

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.

In addition, Apache::ASP is only supported on our FreeBSD servers.   If your Virtual Server was ordered after Nov 22, 1999, you are likely running FreeBSD. To find out which O/S your Virtual Server is running, use the uname command:

% uname

If your Virtual Server is still running BSD/OS, Upgrade to a New FreeBSD Virtual Server today!

Installation
Connect to your Virtual Server via Telnet or SSH and simply follow these easy steps to install Apache::ASP:

  1. Install the mod_perl Dynamic Module.

  2. Install the Perl LWP library:

     

    % vinstall perl-lwp

     

  3. Use vcpan to install the Apache::ASP dynamic module:

     

    % unlimit
    % vcpan Bundle::Apache::ASP
    Please note: This installation takes awhile!!

     

  4. 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>

     

  5. Restart Your Web Server

  6. Make the simple html page below with an extension of ".asp" verses ".html" 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>

     

  7. Fetch the page with a web browser and watch it work!
    You may also attempt to install many of the asp scripts found here!


[ DNS ] [ Email ] [ Server Admin ] [ Web Server ]

PLEASE NOTE, THIS IS OLD ARCHIVE INFORMATION AND MAY NOT FUNCTION ON NEW SERVERS