I know, I know, I'm dicing with death but I'm trying to get this to work. I'm using the following:
PerlRequire "e:/Apache2/conf/startup.pl"
<Location /cgi-bin/stuff>
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
Options +ExecCGI
PerlOptions +ParseHeaders
</Location>
....and when I use a test script it works fine and tells me I'm running under mod_perl.
The problem I'm having is that my startup file doesn't seem to be loading at all and my error log just says undefined sub-routine blah() when I load my real script.
The startup file looks like:
use ModPerl::Util ();
use Apache::RequestRec ();
use Apache::RequestIO ();
use Apache::RequestUtil ();
use Apache::Server ();
use Apache::ServerUtil ();
use Apache::Connection ();
use Apache::Log ();
use Apache::Const -compile => ':common';
use APR::Const -compile => ':common';
use APR::Table ();
use Apache::compat ();
use ModPerl::Registry ();
use lib '/apache2/cgi-bin/stuff/admin';
require Package::mod_perl;
1;
.....I don't get it. All I see when restarting apache is:
Using E:/apach2/blib
.....even adding die; into startup.pl has no effect that I can see :(
Code:
PerlSwitches -Mblib=E:/Apache2 PerlRequire "e:/Apache2/conf/startup.pl"
<Location /cgi-bin/stuff>
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
Options +ExecCGI
PerlOptions +ParseHeaders
</Location>
....and when I use a test script it works fine and tells me I'm running under mod_perl.
The problem I'm having is that my startup file doesn't seem to be loading at all and my error log just says undefined sub-routine blah() when I load my real script.
The startup file looks like:
Code:
use Apache2 (); use ModPerl::Util ();
use Apache::RequestRec ();
use Apache::RequestIO ();
use Apache::RequestUtil ();
use Apache::Server ();
use Apache::ServerUtil ();
use Apache::Connection ();
use Apache::Log ();
use Apache::Const -compile => ':common';
use APR::Const -compile => ':common';
use APR::Table ();
use Apache::compat ();
use ModPerl::Registry ();
use lib '/apache2/cgi-bin/stuff/admin';
require Package::mod_perl;
1;
.....I don't get it. All I see when restarting apache is:
Using E:/apach2/blib
.....even adding die; into startup.pl has no effect that I can see :(