You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Rosane Novello <rn...@sendas.com.br> on 2003/04/28 22:36:38 UTC

Apache cannot load ...mod_perl.so .. module could not be found

I installed mod_perl with ppm and it´s seems ok.
 
When I try to 

LoadModule perl_module modules/mod_perl.so 

Apache keeps showing the error:
Cannot load C:/Apache2/Apache2/modules/mod_perl.so into server: The
specified module could not be 
found.
 
but the mod_perl.so is there. All the other modules load fine.
 
 
C:\ApacheGroup\Apache2\bin>perl -V
Summary of my perl5 (revision 5 version 6 subversion 1) configuration:
  Platform:
    osname=MSWin32, osvers=4.0, archname=MSWin32-x86-multi-thread
    uname=''
    config_args='undef'
    hint=recommended, useposix=true, d_sigaction=undef
    usethreads=undef use5005threads=undef useithreads=define
usemultiplicity=def
ine
    useperlio=undef d_sfio=undef uselargefiles=undef usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
  Compiler:
    cc='cl', ccflags ='-nologo -O1 -MD -DNDEBUG -DWIN32 -D_CONSOLE
-DNO_STRICT -
DHAVE_DES_FCRYPT  -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS
-DPERL_MSVCRT_READ
FIX',
    optimize='-O1 -MD -DNDEBUG',
    cppflags='-DWIN32'
    ccversion='', gccversion='', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=10
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize
=4
    alignbytes=8, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='link', ldflags ='-nologo -nodefaultlib -release
-libpath:"C:\Perl\lib\C
ORE"  -machine:x86'
    libpth="C:\Program Files\SQLLIB\LIB" "C:\Perl\lib\CORE"
    libs=  oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32
.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib  netapi32.lib uuid.lib
wsoc
k32.lib mpr.lib winmm.lib  version.lib odbc32.lib odbccp32.lib msvcrt.lib
    perllibs=  oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib
comd
lg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib  netapi32.lib
uuid.lib
wsock32.lib mpr.lib winmm.lib  version.lib odbc32.lib odbccp32.lib
msvcrt.lib
    libc=msvcrt.lib, so=dll, useshrplib=yes, libperl=perl56.lib
  Dynamic Linking:
    dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -release
-libpath:"C:
\Perl\lib\CORE"  -machine:x86'
 
 
Characteristics of this binary (from libperl):
  Compile-time options: MULTIPLICITY USE_ITHREADS PERL_IMPLICIT_CONTEXT
PERL_IMP
LICIT_SYS
  Locally applied patches:
        ActivePerl Build 630
  Built under MSWin32
  Compiled at Oct 31 2001 20:29:41
  @INC:
    C:/Perl/lib
    C:/Perl/site/lib
    
C:\ApacheGroup\Apache2\bin>apache -V
Server version: Apache/2.0.44
Server built:   Jan 18 2003 11:47:09
Server's Module Magic Number: 20020903:0
Architecture:   32-bit
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/winnt"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D HTTPD_ROOT="/apache"
 -D SUEXEC_BIN="/apache/bin/suexec"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_ERRORLOG="logs/error.log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"
 
 
C:\ApacheGroup\Apache2\bin>apache -k start
Syntax error on line 181 of C:/ApacheGroup/Apache2/conf/httpd.conf:
Cannot load C:/ApacheGroup/Apache2/modules/mod_perl.so into server: The
specifie
d module could not be found.
 
C:\ApacheGroup\Apache2\bin>dir C:\ApacheGroup\Apache2\modules\*perl*
 Volume in drive C has no label.
 Volume Serial Number is 1063-B214
 
 Directory of C:\ApacheGroup\Apache2\modules
 
04/10/2002  23:01              208.896 mod_perl.so
               1 File(s)        208.896 bytes
               0 Dir(s)  24.449.380.352 bytes free
 
 <ma...@sendas.com.br> Rosane Novello
 
 

Re: Apache cannot load ...mod_perl.so .. module could not be found

Posted by Randy Kobes <ra...@theoryx5.uwinnipeg.ca>.
On Mon, 28 Apr 2003, Rosane Novello wrote:

> I installed mod_perl with ppm and it�s seems ok.
> When I try to 
> 
> LoadModule perl_module modules/mod_perl.so 
> 
> Apache keeps showing the error:
> Cannot load C:/Apache2/Apache2/modules/mod_perl.so into server: The
> specified module could not be found.
>  
> but the mod_perl.so is there. All the other modules load fine.
[ .. ]  
> Characteristics of this binary (from libperl):
>   Compile-time options: MULTIPLICITY USE_ITHREADS PERL_IMPLICIT_CONTEXT
> PERL_IMPLICIT_SYS
>   Locally applied patches:
>         ActivePerl Build 630
[ .. ]
> C:\ApacheGroup\Apache2\bin>apache -V
> Server version: Apache/2.0.44
[ .. ]  
> C:\ApacheGroup\Apache2\bin>dir C:\ApacheGroup\Apache2\modules\*perl*
>  
> 04/10/2002  23:01              208.896 mod_perl.so
>                1 File(s)        208.896 bytes
>                0 Dir(s)  24.449.380.352 bytes free

Thanks for the detailed info! The problem is that you're
apparently trying to use the mod_perl.so from mod_perl 1 (the
http://theoryx5.uwinnipeg.ca/ppmpackages/mod_perl.ppd package) in
an Apache2 server - Apache 1.3 and Apache 2.0 modules aren't
compatible. There's three options:

- use this mod_perl with an Apache 1.3 server,

- continue to use Apache 2.0 but get the mod_perl-2.ppd package
from where you got mod_perl.ppd; this isn't recommended, as
mod_perl 2 doesn't play nicely with Win32 ActivePerl 6xx, based
on perl-5.6.1, due to some issues with threads in perl-5.6.1,

- install ActivePerl 8xx, based on perl-5.8.0, and with your
Apache 2.0 server install the mod_perl.ppd package from
http://theoryx5.uwinnipeg.ca/ppms/. Although mod_perl 2 is still
in a development phase, and the ActiveState 8xx ppm repository
isn't as complete as their 6xx repository, this may be the better
option from the point of view of performance on Win32, both on
the Apache side and the mod_perl side.

-- 
best regards,
randy kobes