RE: Apache mod_perl

[prev] [thread] [next] [Date index for 2005/04/25]

From: Gert Jan Schipper
Subject: RE: Apache mod_perl
Date: 12:16 on 25 Apr 2005
Hi Philip,

For answers on your questions see below mail:

> Hi, here are some questions / things to try.
>  1.  Do you have multiple installations of perl?

I don't think it. It's a standard installation of RedHet 3.0 AS

>=20
>  2. Post the full output perl -V output to the list.
>=20
[root@cnd0945 logs]# perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
  Platform:
    osname=3Dlinux, osvers=3D2.4.21-1.1931.2.393.entsmp,
archname=3Di386-linux-thread-multi
    uname=3D'linux por'
    config_args=3D'-des -Doptimize=3D-O2 -g -pipe -march=3Di386 -mcpu=3Di686
-Dmyhostname=3Dlocalhost -Dperladmin=3Droot@localhost -Dcc=3Dgcc -Dcf_by=3D=
Red
Hat, Inc. -Dinstallprefix=3D/usr -Dprefix=3D/usr -Darchname=3Di386-linux
-Dvendorprefix=3D/usr -Dsiteprefix=3D/usr
-Dotherlibdirs=3D/usr/lib/perl5/5.8.0 -Duseshrplib -Dusethreads
-Duseithreads -Duselargefiles -Dd_dosuid -Dd_semctl_semun -Di_db
-Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3D3pm -Duseperlio
-Dinstallusrbinperl -Ubincompat5005 -Uversiononly -Dpager=3D/usr/bin/less
-isr'
    hint=3Drecommended, useposix=3Dtrue, d_sigaction=3Ddefine
    usethreads=3Ddefine use5005threads=3Dundef'
 useithreads=3Ddefine usemultiplicity=3D
    useperlio=3D d_sfio=3Dundef uselargefiles=3Ddefine usesocks=3Dundef
    use64bitint=3Dundef use64bitall=3Dun uselongdouble=3D
    usemymalloc=3D, bincompat5005=3Dundef
  Compiler:
    cc=3D'gcc', ccflags =3D'-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
-DDEBUGGING -fno-strict-aliasing -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64 -I/usr/include/gdbm',
    optimize=3D'',
    cppflags=3D'-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING
-fno-strict-aliasing -I/usr/local/include -I/usr/include/gdbm'
    ccversion=3D'', gccversion=3D'3.2.3 20030502 (Red Hat Linux 3.2.3-19)',
gccosandvers=3D''
gccversion=3D'3.2.3 200305'
    intsize=3Do, longsize=3Ds, ptrsize=3Dl, doublesize=3D8, byteorder=3D1234
    d_longlong=3Ddefine, longlongsize=3D8, d_longdbl=3Ddefine, longdblsize=
=3D12
    ivtype=3D'long'
k', ivsize=3D4'
ivtype, nvtype=3D'double'
o_no', nvsize=3D, Off_t=3D'', lseeksize=3D8
    alignbytes=3D4, prototype=3Ddefine
  Linker and Libraries:
    ld=3D'gcc'
l', ldflags =3D' -L/usr/local/lib'
ldflags_use'
    libpth=3D/usr/local/lib /lib /usr/lib
    libs=3D-lnsl -lgdbm -ldb -ldl -lm -lpthread -lc -lcrypt -lutil
    perllibs=3D
    libc=3D/lib/libc-2.3.2.so, so=3Dso, useshrplib=3Dtrue, libperl=3Dlibper
    gnulibc_version=3D'2.3.2'
  Dynamic Linking:
    dlsrc=3Ddl_dlopen.xs, dlext=3Dso', d_dlsymun=3Dundef, ccdlflags=3D'-rdy=
namic
-Wl,-rpath,/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE'
    cccdlflags=3D'-fPIC'
ccdlflags=3D'-rdynamic -Wl,-rpath,/usr/lib/perl5', lddlflags=3D's
Unicode/Normalize XS/A'


Characteristics of this binary (from libperl):
  Compile-time options: DEBUGGING MULTIPLICITY USE_ITHREADS
USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
  Locally applied patches:
        MAINT18379
  Built under linux
  Compiled at Sep 15 2003 10:03:52
  @INC:
    /usr/lib/perl5/5.8.0/i386-linux-thread-multi
    /usr/lib/perl5/5.8.0
    /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
    /usr/lib/perl5/site_perl/5.8.0
    /usr/lib/perl5/site_perl
    /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
    /usr/lib/perl5/vendor_perl/5.8.0
    /usr/lib/perl5/vendor_perl
    /usr/lib/perl5/5.8.0/i386-linux-thread-multi
    /usr/lib/perl5/5.8.0
    .
[root@cnd0945 logs]#

>  3. post the output of
>=20
> find /usr/lib/perl5/5.8.0 -type f -name "AuthenNTLM*" to the list.
>=20

I didn't found this file. But I've run the command "perl -MCPAN -e
install 'Apache::AuthenNTLM'"

> If you have a startup.pl file post that too.

Startup.pl:

use warnings;
use strict;

use Apache2::ServerUtil ();
use Apache2::ServerRec ();

use File::Spec::Functions qw(catdir);

# base server
# XXX: at the moment this is wrong, since it return the base server $s
# and not the vhost's one. needs to be fixed.
my $s =3D Apache2::ServerUtil->server;

my $vhost_doc_root =3D catdir Apache2::ServerUtil::server_root, qw(htdocs
vhost);

# testing $s->add_config() in vhost
my $conf =3D <<"EOC";
# must use PerlModule here to check for segfaults
# and that the module is loaded by vhost
PerlModule TestVhost::config
PerlSetVar DocumentRootCheck $vhost_doc_root
<Location /TestVhost__config>
    SetHandler modperl
    PerlResponseHandler TestVhost::config::my_handler
</Location>
EOC

$s->add_config([split /\n/, $conf]);

# this used to have problems on win32
$s->add_config(['<Perl >', '1;', '</Perl>']);

1;

>=20
> 4. Above the Directory  "/opt/Cordys/Web" line
>     try adding
>     PerlModule Apache::AuthenNTLM

After this I get the following message in th error_log file:

[Mon Apr 25 14:10:19 2005] [error] Can't load Perl module
Apache::AuthenNTLM for server cnd0945.vanenburg.com:0, exiting...


>=20
> HTH.


>=20
>=20
> --
> END
>
------------------------------------------------------------------------
--
> ---
> Philip M. Gollucci
> Senior Developer - Liquidity Services Inc.
> Phone:  202.558.6268 (Direct)
> E-Mail: pgollucci@xxxxxxxxxxx.xxx
> Web:    http://www.liquidation.com


**********************************************************************
The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee. Access to this message
by anyone else is unauthorized. If you are not the intended recipient, any
disclosure, copying, or distribution of the message, or any action or
omission taken by you in reliance on it, is prohibited and may be unlawful.
Please immediately contact the sender if you have received this message in
error.
**********************************************************************


(message missing)

Apache mod_perl
Gert Jan Schipper 08:35 on 22 Apr 2005

Re: Apache mod_perl
Philip M. Gollucci 09:10 on 22 Apr 2005

RE: Apache mod_perl
Gert Jan Schipper 09:41 on 22 Apr 2005

RE: Apache mod_perl
Gert Jan Schipper 09:56 on 22 Apr 2005

Re: Apache mod_perl
Shannon Eric Peevey 11:18 on 22 Apr 2005

RE: Apache mod_perl
Gert Jan Schipper 11:21 on 22 Apr 2005

Re: Apache mod_perl
Shannon Eric Peevey 11:29 on 22 Apr 2005

RE: Apache mod_perl
Gert Jan Schipper 11:44 on 22 Apr 2005

RE: Apache mod_perl
Gert Jan Schipper 12:12 on 22 Apr 2005

Re: Apache mod_perl
Philip M. Gollucci 17:50 on 22 Apr 2005

Re: Apache mod_perl
Stephen Clouse 17:52 on 22 Apr 2005

Re: Apache mod_perl
Philip M. Gollucci 18:12 on 22 Apr 2005

Re: Apache mod_perl
Shannon Eric Peevey 19:19 on 22 Apr 2005

Re: Apache mod_perl
Philip M. Gollucci 19:27 on 22 Apr 2005

RE: Apache mod_perl
Gert Jan Schipper 12:16 on 25 Apr 2005

Re: Apache mod_perl
Shannon Eric Peevey 13:29 on 25 Apr 2005

RE: Apache mod_perl
Gert Jan Schipper 13:32 on 25 Apr 2005

RE: Apache mod_perl
Gert Jan Schipper 07:49 on 26 Apr 2005

Re: Apache mod_perl
Shannon Eric Peevey 10:55 on 26 Apr 2005

Generated at 09:30 on 27 Apr 2005 by mariachi v0.52