o Download Apache 2 and mod_perl 2

  $ wget http://www.tux.org/pub/net/apache/dist/httpd/httpd-2.0.47.tar.gz
  $ wget http://perl.apache.org/dist/mod_perl-2.0-current.tar.gz

o Install Apache 2

  $ tar -zxvf httpd-2.0.47.tar.gz
  $ cd httpd-2.0.47
  $ ./configure --prefix=/usr/local/apache2 --with-mpm=prefork
  $ make
  $ su -c "make install"

o Install mod_perl 2

  $ tar -zxvf mod_perl-2.0-current.tar.gz
  $ cd mod_perl-1.99_09/
  $ perl Makefile.PL MP_AP_PREFIX=/usr/local/apache2 MP_INST_APACHE2=1 MP_COMPAT_1X=0
  $ make
  $ make test
  $ su -c "make install"

o Install Text::Forge

  $ tar -zxvf Text-Forge-2.16.tar.gz
  $ perl Makefile.PL
  $ make
  $ su -c "make install"

o Configure Apache; append the following to /usr/local/apache2/conf/httpd.conf

  LoadModule perl_module modules/mod_perl.so
  PerlModule Apache2
  PerlLoadModule Text::Forge::ModPerl

  <Files ~ ".tf$">
    ForgeCache On
    SetHandler perl-script
    PerlResponseHandler Text::Forge::ModPerl
  </Files>

o create a test file

  # echo "<html><body><h1>Hello World! <%= scalar localtime %>" > /usr/local/apache2/htdocs/test.tf

o And try fetching it with your favorite browser

  $ lynx http://localhost/test.tf

o If you see the message Hello World! with the current date and time,
  then it works! Otherwise, check the server logs for any error messages.
