Gossamer Forum
Home : General : Internet Technologies :

Response Headers + Mod_Perl

Quote Reply
Response Headers + Mod_Perl
Hi,

When reading the headers given out from the server I see mod_perl is not included although this IS installed:

Server: Apache/1.3.26 (Unix) mod_gzip/1.3.19.1a PHP/4.2.2

As the mod_perl server in statically compiled into the httpd binary and not via DSO, is this why its not shown in the header response? I'm just trying to make sure I have it installed corectlly.

------------
ATEX 100
Quote Reply
Re: [AteX] Response Headers + Mod_Perl In reply to
From telnet/ssh enter:

httpd -l (lowercase L)

Last edited by:

Paul: Aug 11, 2002, 3:44 AM
Quote Reply
Re: [Paul] Response Headers + Mod_Perl In reply to
Thanks. The mod_perl is installed in the binary as i said:

Compiled-in modules:

http_core.c

mod_so.c

mod_perl.c

... but doesnt show in the headers so i woundr if static moduls are not shown this way.




------------
ATEX 100
Quote Reply
Re: [AteX] Response Headers + Mod_Perl In reply to
Compiled in modules probably won't show up. I use mod_perl as a DSO and that will show but if httpd -l shows mod_perl.c but it isn't showing then I don't think you need to worry.
Quote Reply
Re: [AteX] Response Headers + Mod_Perl In reply to
Hmm...

Here's another thing:

Syntax error on line 1141 of /usr/local/apache/conf/httpd.conf:

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

Which could indicate mod_perl is not installed Unsure

------------
ATEX 100
Quote Reply
Re: [AteX] Response Headers + Mod_Perl In reply to
What versions of mod_perl/apache are you using?

Did you compile mod_perl into apache yourself?

Last edited by:

Paul: Aug 11, 2002, 3:57 AM
Quote Reply
Re: [Paul] Response Headers + Mod_Perl In reply to
Latest 1.x series of both and yes. I should mention that I have installed this before on other servers but as a DSO with no problems so I'm a bit stumped so far on this problem!




------------
ATEX 100
Quote Reply
Re: [AteX] Response Headers + Mod_Perl In reply to
How did you compile?....did you follow instructions at perl.apache.org?
Quote Reply
Re: [Paul] Response Headers + Mod_Perl In reply to
YES & YES!

MOD_PERL:

perl Makefile.PL \
APACHE_SRC=/usr/local/src/apache_1.3.26/src \
NO_HTTPD=1 \
USE_APACI=1 \
PREP_HTTPD=1 \
EVERYTHING=1

make
make install


APACHE
./configure \
--prefix=/usr/local/apache \
--enable-shared=max \
--enable-module=most \
--activate-module=src/modules/perl/libperl.a

make
make install

Within a VirtualHost container:

<Location /cgi-bin/b*.pl>
SetHandler perl-script
PerlHandler Apache::Registry
Options -Indexes ExecCGI
PerlSendHeader On
</Location>
------------
ATEX 100

Last edited by:

AteX: Aug 11, 2002, 4:08 AM
Quote Reply
Re: [AteX] Response Headers + Mod_Perl In reply to
Just to update that I thankfully have this working now :)
It was a corrupted mod_perl.c file from the source tree that was causing the issue.
Thanks.
------------
ATEX 100