You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Scott Chapman <sc...@mischko.com> on 2002/02/08 17:18:04 UTC

Moving out of ModPerl in Windows. What changes for EmbPerl?

I appear to be having some strang problems with ModPerl and caching 
precompiled Perl code.  When I change my code, the changes aren't taking 
effect under ModPerl.  I'm seeing some very strange behavior.

In order to buy me some time on this ModPerl situation (and try to get this 
project milestone done on time), I want to move the code out from ModPerl 
and run EmbPerl straight.  What all do I lose in EmbPerl functionality if I do 
this?  Does Apache::SessionX still work under straight Perl?

The other thing I want to do is make it so it's not obvious that I'm doing this.  I 
need to know how to configure Apache so that it handles .epl files by running 
them through the .bat file.  Can someone give me the details on this config?

Thanks!
Scott

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: Moving out of ModPerl in Windows. What changes for EmbPerl?

Posted by Gerald Richter <ri...@ecos.de>.
> Will EmbperlObject still work out from under ModPerl?
> 

Yes, you need to use epocgi.pl, instead of embpcgi.pl

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 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: Moving out of ModPerl in Windows. What changes for EmbPerl?

Posted by Scott Chapman <sc...@mischko.com>.
Will EmbperlObject still work out from under ModPerl?

On 8 Feb 2002 at 19:57, Gerald Richter wrote:

> 
> 
> > I appear to be having some strang problems with ModPerl and caching
> > precompiled Perl code.  When I change my code, the changes aren't taking
> > effect under ModPerl.  I'm seeing some very strange behavior.
> >
> 
> This is true for all code inside of Perl modules or files which you load
> with use or require. See the Embperl FAQ.
> 
> > In order to buy me some time on this ModPerl situation (and try to get
> this
> > project milestone done on time), I want to move the code out from ModPerl
> > and run EmbPerl straight.  What all do I lose in EmbPerl functionality if
> I do
> > this?  Does Apache::SessionX still work under straight Perl?
> >
> 
> The one thing you loose is execution speed, the other thing is the access to
> the Apache request record ($req_rec). Session handling still works as CGI.
> 
> > The other thing I want to do is make it so it's not obvious that I'm doing
> this.  I
> > need to know how to configure Apache so that it handles .epl files by
> running
> > them through the .bat file.  Can someone give me the details on this
> config?
> >
> 
> You don't need a bat file, you just do it the same way as on Unix by
> invoking the embpcgi.pl.  See
> http://perl.apache.org/embperl/Embperl.pod.2.html#As_a_CGI_script. Instead
> of the <Directory> block use a <Files> Block
> 
> 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 925131
> WWW:        http://www.ecos.de      Fax:      +49 6133 925152
> -------------------------------------------------------------
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: Moving out of ModPerl in Windows. What changes for EmbPerl?

Posted by Gerald Richter <ri...@ecos.de>.

> I appear to be having some strang problems with ModPerl and caching
> precompiled Perl code.  When I change my code, the changes aren't taking
> effect under ModPerl.  I'm seeing some very strange behavior.
>

This is true for all code inside of Perl modules or files which you load
with use or require. See the Embperl FAQ.

> In order to buy me some time on this ModPerl situation (and try to get
this
> project milestone done on time), I want to move the code out from ModPerl
> and run EmbPerl straight.  What all do I lose in EmbPerl functionality if
I do
> this?  Does Apache::SessionX still work under straight Perl?
>

The one thing you loose is execution speed, the other thing is the access to
the Apache request record ($req_rec). Session handling still works as CGI.

> The other thing I want to do is make it so it's not obvious that I'm doing
this.  I
> need to know how to configure Apache so that it handles .epl files by
running
> them through the .bat file.  Can someone give me the details on this
config?
>

You don't need a bat file, you just do it the same way as on Unix by
invoking the embpcgi.pl.  See
http://perl.apache.org/embperl/Embperl.pod.2.html#As_a_CGI_script. Instead
of the <Directory> block use a <Files> Block

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 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org