Gossamer Forum
Home : Products : Gossamer Mail : Discussion :

Problem with Gmail under mod_perl

Quote Reply
Problem with Gmail under mod_perl
Hi Alex,

I created startup.pl file as follow:
-------------------------------
#!/usr/bin/perl
use strict;
use lib '/home/vnenterprise/public_html/cgi-bin/mail/admin';
use GMail::mod_perl;

1;
-------------------------------


and in http.conf as follow:
-------------------------------
PerlRequire /home/dmainsite/mail/batch/startup.pl
<Location /cgi-bin/mail>
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader On
Options +ExecCGI
</Location>

--------------------------------

When I restarted apache, it said

Preload Gossamer Mail modules into mod_perl:
. . . . . . .
All modules loaded okay!
Compiling all functions ... All modules compiled and loaded okay!

[ OK ]


and



Failed to apply changes : [Tue May 16 02:26:21 2006] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Tue May 16 02:26:22 2006] [notice] Digest: generating secret for digest authentication ... [Tue May 16 02:26:22 2006] [notice] Digest: done [Tue May 16 02:26:22 2006] [notice] LDAP: Built with OpenLDAP LDAP SDK [Tue May 16 02:26:22 2006] [notice] LDAP: SSL support unavailableWhen I run I got "Internal Server Error"Any idea to help? I need to setup to report to my manager soon. But I'm stuck here.KieuAnh
Quote Reply
Re: [KieuAnh] Problem with Gmail under mod_perl In reply to
Are there any errors in the error log from the internal server error? The errors that you pasted don't look like anything caused by Gossamer Mail.

Adrian
Quote Reply
Re: [brewt] Problem with Gmail under mod_perl In reply to
The error is :

failed to resolve handler `Apache::Registry'
Can't locate Apache/Registry.pm in @INC (@INC contains: /home/vnenterprise/public_html/cgi-bin/mail/admin /usr/lib/perl5/5.8.3/i386-linux-thread-multi /usr/lib/perl5/5.8.3 /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl . /etc/httpd/ /etc/httpd/lib/perl) at (eval 447) line 3.\n


If I change the http.conf like this:
-------------------------------
PerlRequire /home/vnenterprise/mail/batch/startup.pl
<Location /cgi-bin/mail>
SetHandler perl-script
PerlHandler ModPerl::Registry
PerlSendHeader On
Options +ExecCGI
</Location>

--------------------------------
I got the different error:

ModPerl::Registry: Undefined subroutine &Apache::ServerUtil::restart_count called at GT::Base::register_persistent_cleanup line 585.\n

Please help me friends, I am in trouble now.
My server is fedora redhat core 2. That's virtual dedicated server from godaddy.com

HELP ME PLEASE

Quote Reply
Re: [KieuAnh] Problem with Gmail under mod_perl In reply to
You need to install the Apache::Registry module.

Adrian
Quote Reply
Re: [brewt] Problem with Gmail under mod_perl In reply to
How to install Apache::Resistry.?

I tried to search on CPAN but it is on mod_perl. My server has mod_perl (/usr/src/build/346949-i386/install/usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi/mod_perl.pm). version mod_perl/1.99_12 which embed a Perl interpreter in the Apache/2.x HTTP server.

Another way I tried to upgrade to mod_perl/2.0.2 form CPAN, but it has error as follow:

mod_perl/1.99_12 installation detected... not ok

Cannot install mod_perl/2.0.2 on top of mod_perl/1.99_12
due to a major API change between mod_perl 1.999_21 and 1.999_22.

Conflicting file: /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi/Apache2.pm
Conflicting dir: /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi/Apache

Please nuke the prior mod_perl installation from your site_lib,
use a different perl to run the installation process, or use the
PREFIX option when creating your Makefile. See:

http://perl.apache.org/docs/2.0/rename.html

for more details.

aborting...

I have no idea now. Are there anybody know how to install Apache::Registry
Quote Reply
Re: [KieuAnh] Problem with Gmail under mod_perl In reply to
Just run the following as root:

perl -MCPAN -e 'install Apache::Registry'

That should install Apache::Registry. Your mod_perl version thing is a separate issue, that you should probably resolve (you're running a really old beta copy that you should upgrade to the final version). The error says that you need to uninstall the old version before you can proceed. I believe you have to remove the /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi/Apache directory and the file: /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi/Apache2.pm before you can upgrade mod_perl.

Adrian
Quote Reply
Re: [brewt] Problem with Gmail under mod_perl In reply to
When I ran perl -MCPAN -e 'install Apache::Registry'
it asked me for
[./apache_x.x/src]

I don't know which folder is? Do you have any sample like /usr/something

What do you mean remove "the /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi/Apache directory and the file: /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi/Apache2.pm before you can upgrade mod_perl. "

Is it delete those folder by rm command.?

Thanks Adrian
Quote Reply
Re: [KieuAnh] Problem with Gmail under mod_perl In reply to
Also, when I installed, I got error like this:


/httpd -f `pwd`/t/conf/httpd.conf -X -d `pwd`/t &
/bin/sh: line 1: /httpd: No such file or directory
httpd listening on port 8529
will write error_log to: t/logs/error_log
letting apache warm up...\c
done
/usr/bin/perl t/TEST 0
still waiting for server to warm up...............not ok
server failed to start! (please examine t/logs/error_log) at t/TEST line 95.
make: *** [run_tests] Error 111
/usr/bin/make test -- NOT OK
Running make install
make test had returned bad status, won't install without force



Any ideas? I almost giving up
Quote Reply
Re: [KieuAnh] Problem with Gmail under mod_perl In reply to
Sorry, but this is out of the scope of normal GMail support. You're going to have to contact your system administrator or ISP to get that working.

Adrian