PerlEx, running 5.10 and 5.12 in parallel

PerlEx, running 5.10 and 5.12 in parallel

am 04.08.2010 17:18:52 von Michael.Ludwig

I have both 5.10 and 5.12 installed in parallel. I have not encountered any issues so far, but then I may have been lucky.

In IIS, I have .plex mapped to the PerlEx30.dll shipped with AP 5.10, and .p12x mapped to the one shipped with AP 5.12. So far, looks like it works.

I noticed there is only one registry entry for PerlEx, which is HKEY_LOCAL_MACHINE\SOFTWARE\ActiveState\PerlEx\3.0. The only setting that looks specific to one of them, however, is OverLimitFileName. So as long as I don't mind having both handlers share one configuration, this fact per se shouldn't be an issue.

I'm wondering, however, whether this setup is supposed to work (for development), or means running an unnecessary risk of things going wrong?

--
Michael Ludwig
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

RE: PerlEx, running 5.10 and 5.12 in parallel

am 05.08.2010 01:30:43 von Jan Dubois

On Wed, 04 Aug 2010, Ludwig, Michael wrote:
> I have both 5.10 and 5.12 installed in parallel. I have not
> encountered any issues so far, but then I may have been lucky.
>
> In IIS, I have .plex mapped to the PerlEx30.dll shipped with AP 5.10,
> and .p12x mapped to the one shipped with AP
> 5.12. So far, looks like it works.
>
> I noticed there is only one registry entry for PerlEx, which is
> HKEY_LOCAL_MACHINE\SOFTWARE\ActiveState\PerlEx\3.0. The only setting
> that looks specific to one of them, however, is OverLimitFileName. So
> as long as I don't mind having both handlers share one configuration,
> this fact per se shouldn't be an issue.
>
> I'm wondering, however, whether this setup is supposed to work
> (for development), or means running an unnecessary risk of things
> going wrong?

Hi Michael,

I haven't tried this myself, but I think you will need to set up
separate application pools in IIS for the 2 different versions of
PerlEx. The specifics will depend on the particular version of
IIS you are using, but there should be plenty of resources on the
web providing the details.

It is *possible* that things will work without this separation, but
it is generally a bad idea to load different versions of a DLL into
the same process unless the DLLs also have different names. It *may*
work in this case because IIS will load PerlEx30.dll using the full
path name, and there are no further DLLs that need to resolve symbols
from this DLL.

Cheers,
-Jan

_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

RE: PerlEx, running 5.10 and 5.12 in parallel

am 05.08.2010 10:17:40 von Michael.Ludwig

> -----Original Message-----
> From: Jan Dubois

> On Wed, 04 Aug 2010, Ludwig, Michael wrote:

> > In IIS, I have .plex mapped to the PerlEx30.dll shipped with AP
> > 5.10, and .p12x mapped to the one shipped with AP 5.12. So far,
> > looks like it works.

> > I'm wondering, however, whether this setup is supposed to work (for
> > development), or means running an unnecessary risk of things going
> > wrong?
>
> Hi Michael,
>
> I haven't tried this myself, but I think you will need to set up
> separate application pools in IIS for the 2 different versions of
> PerlEx. The specifics will depend on the particular version of IIS
> you are using, but there should be plenty of resources on the web
> providing the details.
>
> It is *possible* that things will work without this separation, but it
> is generally a bad idea to load different versions of a DLL into the
> same process unless the DLLs also have different names. It *may* work
> in this case because IIS will load PerlEx30.dll using the full path
> name, and there are no further DLLs that need to resolve symbols from
> this DLL.

Hi Jan,

thanks for your valuable feedback! I've got some clues and the right
keywords now in order to determine more accurately what to consider.
I only have a superficial configuration knowledge of IIS so far.

Best,
--
Michael Ludwig
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs