I've an apache2 config file under /etc/init.d/apache2/conf.d/ which utilizes Perl Sections.

I'm just attempting to test if your module is loaded and configure apache as appropriate.

if( Apache->module( "mod_ssl.c" ) )
} else { ... }

This is actually the error I see though when restarting. I have also attempted Apache2->method but get same error.

# /etc/init.d/apache2 restart Restarting web server: apache2Building Appliance configuration for Debian 5..7 Syntax error online 73 of /etc/apache2/conf.d/foobar.conf: t(in cleanup) Can't locate object method "module" via package "Apache" (possibly you didn't remember to load "Apache"?) at /etc/apache2/conf.d/foobar.conf line 357.n unsuccessful!

I do not believe it is an @Corporation problem... And apache and libapache2-mod-perl2 packages are generally installed. Actually basically comment that line the relaxation from the perl really runs fine.

perl -e 'print join "\n",@INC'

I have also attempted while using Apache::compat and "Apache2->module".
I suspect the issue is something is missing in startup.pl - but I have been searching and reading through the mod perl paperwork on and on round in circles. Any suggestions stackoverflow???

BTW- my startup.pl:

#!/usr/bin/perl -w
use strict;
use lib qw( /usr/lib/perl5/ /usr/lib/perl5/Bundle /usr/lib/perl5/Apache2 ) ;

    use Apache2 ();
    my $hostname = `hostname`;
use Apache;
use Apache::DBI ();
use Apache2::Const ();
use Apache2::Log ();
use Apache2::URI ();
use Apache2::compat;
use LWP::UserAgent ();
use DBI() ;


The documentation on porting from 1. to two. indicates Apache2::Module::loaded()