Gossamer Forum
Home : Products : Gossamer Mail : Discussion :

apache error (mod_perl related)

Quote Reply
apache error (mod_perl related)
I'm getting this when apache starts up... I can't figure out exactly where to add the GMail path. Any help would be appreciated :) Here's the apache error:

Can't locate GMail/mod_perl.pm in @INC (@INC contains: /usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503 /usr/lib/perl5/site_perl/5.005/i386-linux /usr/lib/perl5/site_perl/5.005 . /etc/httpd/ /etc/httpd/lib/perl) at (eval 32) line 3.


Quote Reply
Re: apache error (mod_perl related) In reply to
Hi,

You need a startup file for mod_perl. This means you should have a line:

PerlRequire /path/to/startup.pl

Inside the startup file you want to preload all the code you are going to use. For Gossamer Mail that means adding:

use lib '/full/path/to/admin';
use GMail::mod_perl;

inside the startup file.

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: apache error (mod_perl related) In reply to
Thanks very much... saved me from recompiling perl to include the path! Shows what I know.

Quote Reply
Re: apache error (mod_perl related) In reply to
Whoops, spoke too soon (maybe)... now it's spitting this at me:

Preloading Gossamer Mail scripts into mod_perl:
. . . . . . .
All scripts compiled and loaded ok!

[Fri Jul 6 11:30:13 2001] [error] /home/web/cgi-bin/mail/startup.pl did not return a true value at (eval 11) line 1.

Syntax error on line 582 of /etc/httpd/conf/httpd.conf:
/home/web/cgi-bin/mail/startup.pl did not return a true value at (eval 11) line 1.

Quote Reply
Re: apache error (mod_perl related) In reply to
Hi Winchell,

Do you have a 1; at the end of startup.pl? This link might help: http://perl.apache.org/...nd_PerlRequire_Direc

Regards,
Charlie

Quote Reply
Re: apache error (mod_perl related) In reply to
The 1 works, and apache starts fine now... rock on!

Quote Reply
Re: apache error (mod_perl related) In reply to
I have been running with mod_perl on a large installation for awhile now. It runs fast and smoothly...nice work.

The one problem I have had is with memory leaks. If I run with MaxRequestsPerChild at the 10000 setting I previously had it.....the httpd processes grow to like 250MB over several hours...the box has 2 GIG...so this wasn't fatal...but things slowed down dramatically. I trimmed MaxRequestsPerChild down to only 100, which is pretty low, but it all runs nicely now.

Cheers

Kevin Patch
Anaconda Partners
www.anaconda.net
Quote Reply
Re: apache error (mod_perl related) In reply to
Hi,

Hmm, very strange. Is this with 2.0.1 (I think I remembered you upgraded, but am not sure). We have it running on the demo with MaxRequests at 100000, and it sits at 15 megs.

Does anyone else have this problem?

Cheers,

Alex

--
Gossamer Threads Inc.