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

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

From: Thierry Valentin
Subject: Re: Apache2/Modperl2 fails to preload Win32::OLE at server startup
Date: 17:21 on 25 Nov 2004
Randy Kobes wrote:
> On Wed, 24 Nov 2004, Thierry Valentin wrote:
> 
> 
>>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!
> 
> 
> I see the same problem when trying to use Win32::OLE in a
> startup script (with no error messages recorded - just a
> popup box saying that Apache encountered a problem when
> trying to start). This will require some debugging, but just
> to confirm - if you take out Win32::OLE from your startup
> script, but use it in a location handled by
> ModPerl::Registry, are there any problems?
> 

Hello
Taking Win32::OLE out of the startup script solves the startup problem.
I have used Win32::OLE in locations handled by ModPerl::Registry without any
problems already.

This raises another question:
Is there a performance/memory issue regarding preloading a perl module at
startup vs. loading it in ModPerl::Registry perl scripts ?

Thanks for your help

        -- 
        

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)

Re: Apache2/Modperl2 fails to preload Win32::OLE at server startup
Thierry Valentin 17:21 on 25 Nov 2004

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