Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Issue with running glinks with mod_perl 2 and apache 2.2

Quote Reply
Issue with running glinks with mod_perl 2 and apache 2.2
Hi,

I've been running Glinks under mod_perl for years successfully with apache 1.3. The other day I upgraded to apache 2.2 and mod_perl2 and per instructions, I placed

Code:
PerlRequire /usr/local/apache/conf/startup.pl
<Location /cgi-bin>
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader On
Options +ExecCGI
</Location>



into httpd.conf.

startup.pl has

Code:
use lib '/home/aeroseek/public_html/cgi-bin/admin';
use Links::mod_perl;
1;


restarted apache with no errors, but when I access my site, I get:

This site is experiencing a high user load. Please try connecting later. Sorry about the inconvenience.

Weird. Nothing shows up in the error logs.

Is there something different that has to be done when running glinks with mod_perl2?

Thanks in advance
Jack R.
http://www.aeroseek.com/

Last edited by:

aeroseek: May 24, 2008, 6:11 PM
Quote Reply
Re: [aeroseek] Issue with running glinks with mod_perl 2 and apache 2.2 In reply to
Hi,

I'm not sure if its a problem with mod_perl2, or GLinks - but there are a few posts in regards to mod_perl2

http://www.gossamer-threads.com/...rch_string=mod_perl2

One that stuck out for me, was:

http://www.gossamer-threads.com/...search_engine#282227

Afraid I can't offer much more help, as I'm not really familiar with mod_perl2.

Hope those posts shed some kind of light. Otherwise, you may have to wait for someone from GT to reply, who may have some idea of whats going on.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Issue with running glinks with mod_perl 2 and apache 2.2 In reply to
Thanks Andy.
Jack R.
http://www.aeroseek.com/
Quote Reply
Re: [aeroseek] Issue with running glinks with mod_perl 2 and apache 2.2 In reply to
Looking in the error_log this is what I get:
Code:
[Sun May 25 15:50:41 2008] [error] [client 24.192.93.185] failed to resolve handler `Apache::Registry': Can't locate object method "boot" via package "mod_perl" at /usr/lib/perl5/site_perl/5.8.8/i686-linux/Apache/Constants.pm line 8.\nCompilation failed in require at /usr/lib/perl5/site_perl/5.8.8/i686-linux/Apache.pm line 6.\nBEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/i686-linux/Apache.pm line 6.\nCompilation failed in require at /usr/lib/perl5/site_perl/5.8.8/i686-linux/Apache/Registry.pm line 2.\nBEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/i686-linux/Apache/Registry.pm line 2.\nCompilation failed in require at (eval 507) line 3.\n,

This is Greek to meCrazy

Some type of misconfig. Or maybe I'm missing some module....idk.
Jack R.
http://www.aeroseek.com/
Quote Reply
Re: [aeroseek] Issue with running glinks with mod_perl 2 and apache 2.2 In reply to
GOT IT!!!!!LaughAngelicCoolSmile

The handler changed its name to
Code:
ModPerl::Registry
in mod_perl2

So, for everyone trying to run glinks under mod_perl2:

httpd.conf
Code:
PerlRequire /path/to/startup.pl
<Location /url/to/links/cgi>
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
PerlSendHeader On
Options +ExecCGI
</Location>
startup.pl
Code:
use lib '/full/path/to/admin';
use Links::mod_perl;
1;
Jack R.
http://www.aeroseek.com/
Quote Reply
Re: [aeroseek] Issue with running glinks with mod_perl 2 and apache 2.2 In reply to
Well...something new.
With glinks running under mod_perl2 I get intermittent errors in the error_log file
Code:
[Sun May 25 17:37:31 2008] [notice] child pid 9993 exit signal Segmentation fault (11)
And when clicking on .cgi links, i.e. add, modify, login, etc. Firefox displays a blank page and IE gives an error. However, repeatedly clicking on the .cgi link eventually brings up the page.

Any ideas?
Jack R.
http://www.aeroseek.com/