Gossamer Forum
Home : Products : Gossamer List : Discussion :

mod_perl problem

Quote Reply
mod_perl problem
I have loaded Glist in mod_perl 1.26 (Apache 1.3.29) but unfortunately I can't access it anymore...
The browser reports a 0 byte error.
LinksSQL 2 and Gforum are working under mod_perl.
Max
The one with Mac OS X Server 10.4 :)
Quote Reply
Re: [maxpico] mod_perl problem In reply to
Hi,

Make sure you load Gossamer List first, and that you have a `use GList::mod_perl` in your startup file.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] mod_perl problem In reply to
I did and restarted apache but unfortunately it doesn't work...

This is my conf in httpd.conf:

PerlRequire /etc/httpd/startup.pl
<Location /glist>
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader On
Options +ExecCGI
</Location>
<Location /forum>
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader On
Options +ExecCGI
</Location>
<Location /links>
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader On
Options +ExecCGI
</Location>


And this is my startup.pl:

use lib '/path/to/glist/private/lib';
use GList::mod_perl;
use lib '/path/to/forum/admin';
require GForum::mod_perl;
use lib '/path/to/links/admin';
use Links::mod_perl;
Max
The one with Mac OS X Server 10.4 :)
Quote Reply
Re: [maxpico] mod_perl problem In reply to
Hi,

Anything strange in the error logs?

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] mod_perl problem In reply to
Nope...

Preloading Gossamer List modules into mod_perl:
. . . . .
All modules loaded ok!
Compiling all functions ... All modules compiled and loaded ok!

Preloading Links SQL scripts into mod_perl:
. . . . . .
All scripts compiled and loaded ok!


Preloading Gossamer Forum modules into mod_perl:
. . . . . . . . . . .
All modules loaded okay!
Compiling all functions ... All modules compiled and loaded okay!


[Thu Feb 12 19:37:01 2004] [notice] Apache/1.3.29 (Darwin) PHP/4.3.2 mod_perl/1.26 configured -- resuming normal operations
[Thu Feb 12 19:37:01 2004] [notice] Accept mutex: flock (Default: flock)
Max
The one with Mac OS X Server 10.4 :)
Quote Reply
Re: [maxpico] mod_perl problem In reply to
Hi,

Sorry, I meant when you make a request to the program and don't see any output?

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] mod_perl problem In reply to
Yes... As I said, the browser reports a 0 byte error. Blank page, blank source.
Max
The one with Mac OS X Server 10.4 :)
Quote Reply
Re: [Alex] mod_perl problem In reply to
Upgraded to 1.0.1 and still the same (restarted apache but still the 0 byte error).

Note that I had to specify the lib directory in the startup.pl file. If I specify only the private directory (/path/to/glist/private) apache won't start with this error:

[Thu Feb 19 15:21:16 2004] [error] Can't locate GList/mod_perl.pm in @INC (@INC contains: /path/to/glist/private /path/to/Perl/5.8.1/darwin-thread-multi-2level /path/to/Perl/5.8.1 /Library/Perl/5.8.1/darwin-thread-multi-2level /Library/Perl/5.8.1 /Library/Perl /Network/Library/Perl/5.8.1/darwin-thread-multi-2level /Network/Library/Perl/5.8.1 /Network/Library/Perl . /usr/ /usr/lib/perl) at /etc/httpd/startup.pl line 2.
BEGIN failed--compilation aborted at /etc/httpd/startup.pl line 2.
Compilation failed in require at (eval 1) line 1.

Syntax error on line 937 of /etc/httpd/httpd.conf:
Can't locate GList/mod_perl.pm in @INC (@INC contains: /path/to/glist/private /path/to/Perl/5.8.1/darwin-thread-multi-2level /path/to/Perl/5.8.1 /Library/Perl/5.8.1/darwin-thread-multi-2level /Library/Perl/5.8.1 /Library/Perl /Network/Library/Perl/5.8.1/darwin-thread-multi-2level /Network/Library/Perl/5.8.1 /Network/Library/Perl . /usr/ /usr/lib/perl) at /etc/httpd/startup.pl line 2.
BEGIN failed--compilation aborted at /etc/httpd/startup.pl line 2.
Compilation failed in require at (eval 1) line 1.


Probably it's a mod_perl issue... I want to rebuild it without rebuilding Apache so mod_perl as a DSO integrated with APXS... Alex, do you think this is ok?
perl Makefile.PL USE_APXS=1 WITH_APXS=/usr/sbin/apxs EVERYTHING=1 NO_HTTPD=1
Max
The one with Mac OS X Server 10.4 :)

Last edited by:

maxpico: Feb 19, 2004, 6:52 AM
Quote Reply
Re: [maxpico] mod_perl problem In reply to
Hi,

You need to specify the path to the lib directory:

use lib '/path/to/private/lib';

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] mod_perl problem In reply to
As I said, I specified the correct path and glist preloads well in mod_perl but it's not accessible by the web browser.
It's in your mod_perl readme file that comes with Glist that is specified the wrong path... However this is another issue.

For my issue, I think that I could resolve by rebuilding mod_perl. However, I am wondering if it's ok to rebuild it with this command:

perl Makefile.PL USE_APXS=1 WITH_APXS=/usr/sbin/apxs EVERYTHING=1 NO_HTTPD=1
Max
The one with Mac OS X Server 10.4 :)
Quote Reply
Re: [Alex] mod_perl problem In reply to
Alex, please, could you reply?
It's important.
Thank you
Max
The one with Mac OS X Server 10.4 :)
Quote Reply
Re: [maxpico] mod_perl problem In reply to
Hi,

Could you send an email to support at gossamer-threads.com with access info, and I'll take a look.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] mod_perl problem In reply to
Some users reported on mod_perl not functioning properly on systems similar than mine. And now it's clear that I must recompile mod_perl. I just want to know if the solution I proposed above is ok for you and GT products and does not have counterparts.
Thank you
Max
The one with Mac OS X Server 10.4 :)
Quote Reply
Re: [Alex] mod_perl problem In reply to
Unfortunately, no good developments... Unsure
I have emailed to you.
Thank you
Max
The one with Mac OS X Server 10.4 :)