Jeff Zhuk | 1 May 05:20 2009
Picon

Re: update site/lib

Thank you, KT Lo!
 
I think I am one step closer.
 
I did: "ppm upgrade" and I saw several upgrade messages including:
"Win32 0.39 (have 0.38)"
 
Before upgrade I had this error message:
 
[Thu Apr 30 20:40:24 2009] [error] Can't load 'C:/Perl/site/lib/auto/Win32/Win32
.dll' for module Win32: load_file:The specified module could not be found at C:/
Perl/lib/DynaLoader.pm line 226.\n at C:/Perl/lib/Cwd.pm line 692\nCompilation f
ailed in require at C:/Perl/lib/Cwd.pm line 692.\nBEGIN failed--compilation abor
ted.\n
In reality I can see "C:/Perl/site/lib/auto/Win32/Win32.dll" file. It is right there, dated 6/17/2002
 
After upgrade the error message is different:
 
[Thu Apr 30 21:04:56 2009] [error] Win32 version 0.27 required--this is only ver
sion 0.191 at C:/Perl/lib/Cwd.pm line 692.\nBEGIN failed--compilation aborted.\n
 
Neither Win32.dll nor anything in the C:/Perl/site/lib/auto/Win32 directory have been changed.
 
I checked the date on Cwd.pm - it is dated 10/30/2008.
 
Any advice?
 
Thank you,
 
Jeff
 
--- On Thu, 4/30/09, KT Lo <joba62rule <at> gmail.com> wrote:

From: KT Lo <joba62rule <at> gmail.com>
Subject: Re: update site/lib
To: "Jeff Zhuk" <jeff_zhuk <at> yahoo.com>
Date: Thursday, April 30, 2009, 12:27 AM

ppm upgrade --install

2009/4/30 Jeff Zhuk <jeff_zhuk <at> yahoo.com>
I have multiple packages in Perl/site/lib.
 
Some of them are old and not compatible with current 5.8.9.
What is the way to upgrade all packages?
 
Something like: ppm install "URL" -all
 
Thank you for your help,
 
Jeff
 
 
 



Bryn Dyment | 1 May 09:06 2009

PerlOptions +Parent and virtual hosts

Hello,

I have successfully been using name-based virtual hosts and have just
added "PerlOptions +Parent" as a way to have multiple branches of my
codebase running on the same server.  A typical virtual host is
configured as:

<VirtualHost *:80>
    ServerName    trunk.translator.xcma.devo
    DocumentRoot  C:\depot\trunk\perl\xcma\translator\html

    PerlOptions  +Parent

    <Perl>
        use lib 'C:\depot\trunk\perl\common';
        use lib 'C:\depot\trunk\perl\xcma\common';
        use lib 'C:\depot\trunk\perl\xcma\translator';
    </Perl>

    PerlRequire  C:\depot\trunk\perl\xcma\translator\translator.pl

    PerlSetVar MasonAutohandlerName autohandler.mas
    PerlSetVar MasonCompRoot        "site =>
C:\depot\trunk\perl\xcma\translator\html"
    PerlAddVar MasonCompRoot        "comp => C:\depot\trunk\perl\common\html"
    PerlSetVar MasonDataDir
C:\WINDOWS\Temp\mason\trunk.translator.xcma.devo
    PerlSetVar MasonEscapeFlags     "h =>
\&HTML::Mason::Escapes::basic_html_escape"

    <LocationMatch "\.(css|html|js)$">
        SetHandler   perl-script
        PerlHandler  HTML::Mason::ApacheHandler
    </LocationMatch>
</VirtualHost>

The only difference versus the other virtual hosts is the replacement
of "trunk" with "release".

When I launch Apache, it crashes unless I also have the following
virtual host configured at the end of my httpd.conf:

<VirtualHost *:80>
    ServerName    localhost
    DocumentRoot  C:

    PerlOptions   +Enable
</VirtualHost>

I've found that I can have any perl-related directive in place of
"PerlOptions +Enable" (e.g., replaced with "PerlModule  HTML::Mason").
 If I remove the directive, or if I remove this virtual host
altogether, it crashes (with no error).  This is on Windows ... my
development environment ... haven't experimented on my Linux server
yet.

Hoping somebody can help ... thanks!

Perrin Harkins | 1 May 18:27 2009
Picon

Re: update site/lib

Jeff,

Since this is a general Perl question, not a mod_perl question, you'd
be better off asking on the Win32 perl mailing list or perlmonks.org.

- Perrin

On Thu, Apr 30, 2009 at 11:20 PM, Jeff Zhuk <jeff_zhuk <at> yahoo.com> wrote:
> Thank you, KT Lo!
>
> I think I am one step closer.
>
> I did: "ppm upgrade" and I saw several upgrade messages including:
> "Win32 0.39 (have 0.38)"
>
> Before upgrade I had this error message:
>
> [Thu Apr 30 20:40:24 2009] [error] Can't load
> 'C:/Perl/site/lib/auto/Win32/Win32
> .dll' for module Win32: load_file:The specified module could not be found at
> C:/
> Perl/lib/DynaLoader.pm line 226.\n at C:/Perl/lib/Cwd.pm line
> 692\nCompilation f
> ailed in require at C:/Perl/lib/Cwd.pm line 692.\nBEGIN failed--compilation
> abor
> ted.\n
> In reality I can see "C:/Perl/site/lib/auto/Win32/Win32.dll" file. It is
> right there, dated 6/17/2002
>
> After upgrade the error message is different:
>
> [Thu Apr 30 21:04:56 2009] [error] Win32 version 0.27 required--this is only
> ver
> sion 0.191 at C:/Perl/lib/Cwd.pm line 692.\nBEGIN failed--compilation
> aborted.\n
>
> Neither Win32.dll nor anything in the C:/Perl/site/lib/auto/Win32 directory
> have been changed.
>
> I checked the date on Cwd.pm - it is dated 10/30/2008.
>
> Any advice?
>
> Thank you,
>
> Jeff
>
> --- On Thu, 4/30/09, KT Lo <joba62rule <at> gmail.com> wrote:
>
> From: KT Lo <joba62rule <at> gmail.com>
> Subject: Re: update site/lib
> To: "Jeff Zhuk" <jeff_zhuk <at> yahoo.com>
> Date: Thursday, April 30, 2009, 12:27 AM
>
> ppm upgrade --install
>
> 2009/4/30 Jeff Zhuk <jeff_zhuk <at> yahoo.com>
>>
>> I have multiple packages in Perl/site/lib.
>>
>> Some of them are old and not compatible with current 5.8.9.
>> What is the way to upgrade all packages?
>>
>> Something like: ppm install "URL" -all
>>
>> Thank you for your help,
>>
>> Jeff
>>
>>
>>
>
>
>

Idel Fuschini | 5 May 10:12 2009
Picon

Pass variable

Hi,
I am the owner of  "Apache Mobile Filter" project (https://sourceforge.net/projects/mobilefilter/).
After my filter detect the UserAgent of a device I want to pass the capability to other applications (cgi, php or tomcat with mod_jk) in the same web server.
How can I do that ?

Please help me.

--
Idel
=====================
E-Mail: idel.fuschini <at> gmail.com
Web Site: http://www.idelfuschini.it
OpenSource Project: http://www.idelfuschini.it/apache-mobile-filter.html

Torsten Foertsch | 5 May 10:27 2009
Picon
Picon

Re: Pass variable

On Tue 05 May 2009, Idel Fuschini wrote:
> I am the owner of  "Apache Mobile Filter" project (
> https://sourceforge.net/projects/mobilefilter/).
> After my filter detect the UserAgent of a device I want to pass the
> capability to other applications (cgi, php or tomcat with mod_jk) in
> the same web server.
> How can I do that ?

$r->subprocess_env
$r->headers_in
$r->notes

depends on what the other apps understand. I think subprocess_env is 
best choice.

Torsten

--

-- 
Need professional mod_perl support?
Just hire me: torsten.foertsch <at> gmx.net

Torsten Foertsch | 5 May 11:44 2009
Picon
Picon

Re: Pass variable

On Tue 05 May 2009, Idel Fuschini wrote:
> how can I read this variable from php and jsp application ?

subprocess_env manipulates environment variables. So, if your 
application can read them it fetches them from that place.

> I did in perl code:
>
> $r->subprocess_env("XXX" => $value);
>
> In cgi I see something like:
>
> REDIRECT_XXX value

Somehow you managed to execute an internal redirect between the time 
your filter is invoked and the CGI script. Is there an ErrorDocument 
involved? Another way to get an internal redirect is a CGI script that 
prints these 2 headers:

Status: 200
Location: /new/url

Apache then copies all environment variables (subprocess_env) from the 
original request to the environment of the new (redirected) request 
with "REDIRECT_" prepended to all names. That is why you see a 
REDIRECT_XXX variable.

Torsten

--

-- 
Need professional mod_perl support?
Just hire me: torsten.foertsch <at> gmx.net

Idel Fuschini | 5 May 11:27 2009
Picon

Re: Pass variable

thanks torsten

how can I read this variable from php and jsp application ?
I did in perl code:

$r->subprocess_env("XXX" => $value);

In cgi I see something like:

REDIRECT_XXX value

Thanks
Idel

2009/5/5 Torsten Foertsch <torsten.foertsch <at> gmx.net>
On Tue 05 May 2009, Idel Fuschini wrote:
> I am the owner of  "Apache Mobile Filter" project (
> https://sourceforge.net/projects/mobilefilter/).
> After my filter detect the UserAgent of a device I want to pass the
> capability to other applications (cgi, php or tomcat with mod_jk) in
> the same web server.
> How can I do that ?

$r->subprocess_env
$r->headers_in
$r->notes

depends on what the other apps understand. I think subprocess_env is
best choice.

Torsten

--
Need professional mod_perl support?
Just hire me: torsten.foertsch <at> gmx.net



Francois Pernet | 6 May 13:40 2009
Picon

Vulnerability ?

Hi,
 
We have received the following vulnerability report:
 
I read the changes for the mod_perl versions but did not find anything really clear. We are using mod_perl version 2.0.3 compiled for Suse linux enterprise server 10 sp2 used with apache 2.0.x compiled also (we are not using rpm versions of these packages).
 
Can somebody clarify if the vulnerability still present in version 2.0.3 and if we are obliged to move to version 2.0.4 ?
 
Many thanks in advance
 
Francois
Jeff Trawick | 6 May 14:28 2009
Picon

Re: Vulnerability ?

On Wed, May 6, 2009 at 7:40 AM, Francois Pernet <Francois.Pernet <at> idsa.ch> wrote:
Hi,
 
We have received the following vulnerability report:
 
I read the changes for the mod_perl versions but did not find anything really clear. We are using mod_perl version 2.0.3 compiled for Suse linux enterprise server 10 sp2 used with apache 2.0.x compiled also (we are not using rpm versions of these packages).
 
Can somebody clarify if the vulnerability still present in version 2.0.3 and if we are obliged to move to version 2.0.4 ?

As listed on that securityfocus page, the CVE number is CVE-2007-1349.  Checking the Changes files for 2.0.3 and 2.0.4, you'll see that 2.0.4 has a fix for that CVE but 2.0.3 doesn't.  So 2.0.3 is vulnerable.

Perrin Harkins | 6 May 18:01 2009
Picon

Re: Vulnerability ?

For mod_perl 2 users, this only affects you if you use
ModPerl::PerlRun or ModPerl::Registry.

- Perrin

On Wed, May 6, 2009 at 7:40 AM, Francois Pernet <Francois.Pernet <at> idsa.ch> wrote:
> Hi,
>
> We have received the following vulnerability report:
> http://www.securityfocus.com/bid/23192/info
>
> I read the changes for the mod_perl versions but did not find anything
> really clear. We are using mod_perl version 2.0.3 compiled for Suse linux
> enterprise server 10 sp2 used with apache 2.0.x compiled also (we are not
> using rpm versions of these packages).
>
> Can somebody clarify if the vulnerability still present in version 2.0.3 and
> if we are obliged to move to version 2.0.4 ?
>
> Many thanks in advance
>
> Francois


Gmane