Mailing List Archive

Apache + FastCGI + Embperl + ActivePerl
Can Embperl works with ActivePerl on NT? I tried installing Embperl with
ActivePerl.
It compiles, but does not pass the off-line mode test. What should I do in
order to make
Embperl work with ActivePerl? Please help....

Is the following combination ok?

Apache + FastCGI + Embperl + ActivePerl (I need fork emulation, but other
binaries doesn't have fork)

Since Embperl file can be processed by calling HTML::Embperl::Execute from a
cgi script,
the problem of using mod_perl on NT that allows just one Perl interpreter
serving
multiple clients might be avoided.

Sho-Huan Tung
tungsh@mis.yuntech.edu.tw
RE: Apache + FastCGI + Embperl + ActivePerl [ In reply to ]
>
> Can Embperl works with ActivePerl on NT? I tried installing Embperl with
> ActivePerl.
> It compiles, but does not pass the off-line mode test. What should I do in
> order to make
> Embperl work with ActivePerl?


The current version neither works with ActiveState Perl nor with another
Perl that has fork emulation on NT. There are two things that must be done:

1.) All XS function definition must contain a special macro that takes care
about the correct parameters that are neccessary for threads/fork
emulation/multipiclity

2.) The globals (mainly the var pCurrReq) must be per interpreter (for fork
emulation) or per thread (for threads)

I am not sure if I bring this in before 1.3 release version. 2.0 will
support it surely (but the current alpha (2.0a6) doesn't)


> Please help....
>
> Is the following combination ok?
>
> Apache + FastCGI + Embperl + ActivePerl (I need fork emulation, but other
> binaries doesn't have fork)
>
> Since Embperl file can be processed by calling
> HTML::Embperl::Execute from a
> cgi script,
> the problem of using mod_perl on NT that allows just one Perl interpreter
> serving
> multiple clients might be avoided.
>

That would be ok with changes I mentioned above.

Gerald

-------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: richter@ecos.de Voice: +49 6133 925151
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------