  # Taken from http://perl.apache.org/docs/2.0/user/handlers/server.html#Startup_File

  if ( ! $ENV{MOD_PERL}) { die "GATEWAY_INTERFACE not Perl!"; }

  use lib qw(/var/www/perl-lib);

  # enable if the mod_perl 1.0 compatibility is needed
  # use Apache2::compat ();
  
  # preload all mp2 modules
  # use ModPerl::MethodLookup;
  # ModPerl::MethodLookup::preload_all_modules();
  
  use ModPerl::Util (); #for CORE::GLOBAL::exit
  
  use Apache2::RequestRec ();
  use Apache2::RequestIO ();
  use Apache2::RequestUtil ();
  
  use Apache2::ServerRec ();
  use Apache2::ServerUtil ();
  use Apache2::Connection ();
  use Apache2::Log ();
  
  use APR::Table ();
  
  use ModPerl::Registry ();
  
  use Apache2::Const -compile => ':common';
  use APR::Const -compile => ':common';

# mysql preload  
  use DBI;
  DBI->install_driver("mysql");

#
  use CGI;
  CGI->compile(':all');

  1;

