mod_perl-startup.pl 780 B

12345678910111213141516171819202122232425262728293031323334
  1. # Taken from http://perl.apache.org/docs/2.0/user/handlers/server.html#Startup_File
  2. if ( ! $ENV{MOD_PERL}) { die "GATEWAY_INTERFACE not Perl!"; }
  3. # !!! set this to your opensim's lib
  4. use lib qw(/home/lulu/temp/opensim/lib);
  5. # enable if the mod_perl 1.0 compatibility is needed
  6. # use Apache2::compat ();
  7. # preload all mp2 modules
  8. # use ModPerl::MethodLookup;
  9. # ModPerl::MethodLookup::preload_all_modules();
  10. use ModPerl::Util (); #for CORE::GLOBAL::exit
  11. use Apache2::RequestRec ();
  12. use Apache2::RequestIO ();
  13. use Apache2::RequestUtil ();
  14. use Apache2::ServerRec ();
  15. use Apache2::ServerUtil ();
  16. use Apache2::Connection ();
  17. use Apache2::Log ();
  18. use APR::Table ();
  19. use ModPerl::Registry ();
  20. use Apache2::Const -compile => ':common';
  21. use APR::Const -compile => ':common';
  22. 1;