Apache2/Modperl2 fails to preload Win32::OLE at server startup

[prev] [thread] [next] [Date index for 2004/11/24]

From: Thierry Valentin
Subject: Apache2/Modperl2 fails to preload Win32::OLE at server startup
Date: 10:29 on 24 Nov 2004
Hello,
I'm currently using the following configuration:

- Perl 5.8.4.810 from Activestate
- Apache 2.0.52 installed from the MSI package
- mod_perl 1.99_17 installed with ppm from http://theoryx5.uwinnipeg.ca

All these 3 packages are frehsly installed and I did no other additions.

After configuring mod_perl in http.conf I tried the following:

- preload Win32::OLE with a 'use Win32::OLE' in the mod_perl startup script:
=> Apache2 refuses to start.

- preload Win32::OLE with a PerlModule Win32::OLE' directive in http.conf:
=> Apache2 still refuses to start


What's strange is that CGI scripts that use Win32::OLE under mod_perl in an 
identical server configuration run successfully!

What did I miss?

Thanks in advance for your help.

Here is my mod_perl configuration in http.conf:
#################################################
# mod_perl configuration directives

LoadModule perl_module modules/mod_perl.so
LoadFile "C:/Perl/bin/perl58.dll"
PerlRequire "C:/Program Files/Apache Group/Apache2/conf/mod_perl_startup.pl"
PerlSwitches -w

Alias /perl/ "C:/Program Files/Apache Group/Apache2/perl/"
<Location /perl>
      AllowOverride None
      Order allow,deny
      Allow from all
      SetHandler perl-script
      PerlResponseHandler ModPerl::Registry
      Options +ExecCGI
      PerlOptions +ParseHeaders
</Location>
#################################################


Here is my mod_perl startup script mod_perl_startup.pl:
#################################################
# mod_perl startup script
use Apache2 ();
use ModPerl::Util ();
use Apache::RequestRec ();
use Apache::RequestIO ();
use Apache::RequestUtil ();
use Apache::ServerRec ();
use Apache::ServerUtil ();
use Apache::Connection ();
use Apache::Log ();
use Apache::Const -compile => ':common';
use APR::Const -compile => ':common';
use APR::Table ();
use Apache::compat ();
use ModPerl::Registry ();
use CGI ();
CGI->compile();
use Win32::OLE (); #### FAILS TO START HERE!
1;
#################################################

        -- 
        

Thierry Valentin
earth decision sciences SA
/(formerly known as T-Surf)/
22, allée de la Foret de la Reine
54500 Vandoeuvre-lès-Nancy, France
Email: valentin@xxxxxxxxxxxxx.xxx
Phone: +33 (0)3-83-67-66-29
Fax: +33 (0)3-83-67-66-34
Please visit our website at: www.earthdecision.com
<http://www.earthdecision.com/>;


-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

(message missing)

Apache2/Modperl2 fails to preload Win32::OLE at server startup
Thierry Valentin 10:29 on 24 Nov 2004

Generated at 11:26 on 21 Dec 2004 by mariachi v0.52