Apache :: ASP
Web applications with Apache + mod_perl
  INTRO
% INSTALL
  CONFIG
  SYNTAX
  EVENTS
  OBJECTS
  SSI
  SESSIONS
  XML/XSLT
  CGI
  PERLSCRIPT
  FAQ
  TUNING
  CREDITS
  SUPPORT
  SITES USING
  RESOURCES
  TODO
  CHANGES
  LICENSE

  EXAMPLES

Powered by Apache::ASP
Powered by ModPerl and Apache
Powered by Perl
Links Checked by NodeWorks
INSTALL

The latest Apache::ASP can be found at your nearest CPAN,
and also:
  http://www.perl.com/CPAN-local/modules/by-module/Apache/
  http://download.sourceforge.net/mirrors/CPAN/modules/by-module/Apache/
  ftp://ftp.duke.edu/pub/perl/modules/by-module/Apache/
As a perl user, you should make yourself familiar with the CPAN.pm module, and how it may be used to install Apache::ASP, and other related modules.

Perl Module Install Sample Apache Build Script
Need Help Quick Start
Linux Distributions  

Perl Module Install

Once you have downloaded it, Apache::ASP installs easily using
the make or nmake commands as shown below.  Otherwise, just
copy ASP.pm to $PERLLIB/site/Apache
  > perl Makefile.PL
  > make
  > make test
  > make install

  * use nmake for win32
Please note that you must first have the Apache Web Server & mod_perl installed before using this module in a web server environment. The offline mode for building static html may be used with just perl.

Need Help

Often, installing the mod_perl part of the Apache server
can be the hardest part.  If this is the case for you,
check out the FAQ and SUPPORT sections for further help,
as well as the "Sample Apache Build Script" in this section.
Please also see the mod_perl guide at http://perl.apache.org/guide which one ought to give a good read before undertaking a mod_perl project.

Linux Distributions

If you have a linux distribution, like a RedHat Linux server,
with an RPM style Apache + mod_perl, seriously consider building
a static version of the httpd server yourself, not DSO.
DSO is marked as experimental for mod_perl, and often does
not work, resulting in "no request object" error messages,
and other oddities, and are terrible to debug, because of
the strange kinds of things that can go wrong.
	
	

Sample Apache Build Script

Here's a build script that can build a statically compiled
Apache with mod_ssl, mod_perl and mod_php.  Just drop the sources
into your build directory, configure the environments as appropriate,
update the build script with the correct version numbers, and go:
 #!/bin/bash

 # SSL
 SSL_BASE=/usr/local/openssl
 export SSL_BASE
 cd mod_ssl-2.7.*
 ./configure \
    --with-apache=../apache_1.3.14


 # PERL
 cd ../mod_perl-1.2*
 cd mod_perl*
 perl Makefile.PL \
    APACHE_SRC=../apache_1.3.14/src \
    NO_HTTPD=1 \
    USE_APACI=1 \
    PREP_HTTPD=1 \
    EVERYTHING=1

 make
 #make test
 make install

 # APACHE
 cd ../apache_1.3.14
 #cd apache_1.3.14
 ./configure \
    --prefix=/usr/local/apache \
    --activate-module=src/modules/perl/libperl.a \
    --activate-module=src/modules/php4/libphp4.a \
    --enable-module=ssl \
    --enable-module=proxy \
    --enable-module=so \
    --disable-rule=EXPAT

 #make certificate
 #make clean
 make
 make install 

Quick Start

Once you have successfully built the Apache Web Server with mod_perl,
copy the ./site/eg/ directory from the Apache::ASP installation
to your Apache document tree and try it out!  You must put "AllowOverride All"
in your httpd.conf <Directory> config section to let the .htaccess file in the
./site/eg installation directory do its work.  If you want a starter
config file for Apache::ASP, just look at the .htaccess file in the
./site/eg/ directory.
So, you might add this to your Apache httpd.conf file just to get the scripts in ./site/eg working:
  <Directory />
    Options FollowSymLinks
    AllowOverride All
  </Directory>
This is not a good production config, because it is insecure with the FollowSymLinks, and tells Apache to look for .htaccess files all the way up to / which is bad for performance, but it should be handy for getting started with development.
You will know that Apache::ASP is working normally if you can run the scripts in ./site/eg/ without any errors. Common problems can be found in the FAQ section.
 
Copyright © 1998-2001, Joshua Chamas, Chamas Enterprises Inc.