Ugh. No errors and Apache won't start. That's odd. Not sure how I can
help you. Try checking your module with 'perl -c module.pm' and see what
it complains about. I'm not sure if I can give any more suggestion
without any errors or without looking at it. Posting your code would
help. Also, you can't just do
package MyPackageApp;
use base 'CGI::Application';
use strict;
# main app code here
and then load it up with Apache/mod_perl using
package MyPackage;
use strict;
use MyPackageApp;
my $app = MyPackageApp->new();
$app->run();
1;
<Location /foo>
Set-Handler perl-script
Perlhandler MyPackage
</Location>
You'd have to do something like
package MyPackage;
use strict;
use MyPackageApp;
use Apache::Constants qw(OK);
sub handler {
my $r = shift;
my $app = MyPackageApp->new();
$app->run();
return OK;
}
1;
If your doing all this and its dying a silent death. Check the messages
file to see if its segfaulting and creating a core somewhere. It may
need to be recompiled. I'm just throwing things out that may help as I'm
working blind here. I wish I could do more.
Jamie
-----Original Message-----
From: Bird Lei [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 02, 2001 10:23 PM
To: Jamie Krasnoo
Cc: [EMAIL PROTECTED]
Subject: RE: [cgiapp] preloading modules at mod_perl startup script
On Fri, 2 Nov 2001, Jamie Krasnoo wrote:
> Look in your error logs and see if anything popped up on it when you
try
> to start it.
>
No. Nothing.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]