Gossamer Forum
Quote Reply
mod_perl
I'm in the middle of installing GForum under mod_perl and am having some problems.

When I restart Apache I get:

Invalid command 'PerlHandler' - perhaps mis-spelled or defined by a module not included in the server configuration.

Any ideas on how to fix this?

GATEWAY_INTERFACE is CGI-Perl/1.1

Apache::Registry and Apache::DBI are up to date.

I have the correct paths too.
Quote Reply
Re: [RedRum] mod_perl In reply to
Hi,

Quote:
Invalid command 'PerlHandler' - perhaps mis-spelled or defined by a module not included in the server configuration.

This means mod_perl is not installed in Apache. Did you build it using DSO or statically? If you are using DSO's, then make sure you have the appropriate LoadModule and AddModule commands in the .conf file. If you built it statically, then you didn't add mod_perl. =)

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] mod_perl In reply to
Surely if gateway interface is CGI-Perl/1.1 then it must be loaded?

Also when I restart apache without the GForum mod_perl code in httpd.conf it says:

Starting httpd-perl OK
Starting httpd OK

Am I mistaken?
Quote Reply
Re: [Alex] mod_perl In reply to
Oops....forgot to say...it is static

Last edited by:

RedRum: Oct 15, 2001, 12:00 PM
Quote Reply
Re: [RedRum] mod_perl In reply to
Ah, you are probably using Mandrake or Redhat right? Make sure you put the Gossamer Forum mod_perl lines inside of /etc/httpd/conf/httpd-perl.conf file, and not the httpd.conf.

You have two servers running, one mod_perl enabled, and the other not. If you put the config directive into httpd.conf, your regular httpd won't be able to start.

Hope this helps,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] mod_perl In reply to
mod_perl is set up to accept proxy requests from the main server using Apache::Proxied.

I also have this in a second conf file:

<IfModule mod_perl.c>
Alias /perl/ /var/www/perl/
Alias /cgi-perl/ /var/www/perl/
</IfModule>

Not sure if that sheds any light.


Quote Reply
Re: [Alex] mod_perl In reply to
Ah.....I just found that file!

Thanks!
Quote Reply
Re: [Alex] mod_perl In reply to
Right, I made the changes and restarted Apache and it said all files loaded and compiled into mod_perl (or whatever the message is) but it died because I forgot the 1; in startup.pl

I edited the file and restarted and this time got no errors but didn't get the message saying all files compiled ok.

Is that ok?
Quote Reply
Re: [RedRum] mod_perl In reply to
Hi,

Yes, that's fine. The shell wrapper that redhat provides hides those messages. You should go to Setup->Environment and check that mod_perl => 1.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] mod_perl In reply to
I don't see environment. But I have a feeling it worked because it is as fast _AS_

http://box.perlmad.com:8200/perl/gforum.cgi


BTW is your download server on steroids?.......I downloaded a copy of GOssamer-Forum and reached 500k/s - it took under 3 seconds :)