You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by David Lloyd <ll...@rebel.net.au> on 2001/06/04 08:46:30 UTC

EmbperlObject + ApacheStatINC Woes

I have, in my httpd.conf:

# If the perl module is installed, this will be enabled.

PerlInitHandler Apache::StatINC;

<IfModule mod_perl.c>
  Alias /perl /home/httpd/perl
  <Location /perl>
    SetHandler perl-script
    PerlHandler Apache::Registry
    Options +ExecCGI
  </Location>

	Alias /foo /home/httpd/html/foo
	<Location /foo>
		PerlSetEnv EMBPERL_OBJECT_BASE base.htm
		PerlSetEnv EMBPERL_FILESMATCH "\.htm.?"
		SetHandler perl-script
		PerlHandler HTML::EmbperlObject
		Options +ExecCGI
	</Location>
</IfModule>

In /home/httpd/html/foo I have:

base.htm:

<html>
<head>
<title>TEST</title>
</head>
<body>
[- Execute ('head.htm') -]
[- Execute ('*') -]
</body>
</html>

head.htm:

<h1>Head 1</h1>

and page.htm:

PAGE ONE

Now, under this setup if I have Apache::StatINC compiled,
HTML::EmbperlObject refuses to find any pages no matter what I call
them. If I comment out or delete any references to Apache::StatINC then
HTML::EmbperlObject suddenly works.

Is this a known problem or clash?

DSL

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


Re: EmbperlObject + ApacheStatINC Woes

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

I tried to track it down and the problem is, that as soon you have a
PerlInitHandler, mod_perl doesn't setup your environment correctly. Until
this is fixed in mod_perl, you can either use SetEnv instead of PerlSetEnv,
but SetEnv only works outside of Location/Directory blocks or move the
Apache::StatINC to a later request phase, like the fixup handler:

PerlFixupHandler  Apache::StatINC

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
-------------------------------------------------------------

----- Original Message -----
From: "David Lloyd" <ll...@rebel.net.au>
To: "Gerald Richter" <ri...@ecos.de>
Cc: <em...@perl.apache.org>
Sent: Tuesday, June 05, 2001 1:19 AM
Subject: Re: EmbperlObject + ApacheStatINC Woes


>
> It just kills it totally. Either embperl.log is not made, or no lines
> are added to it. The moment I remove PerlInitHandler Apache::StatINC,
> /tmp/embperl.log fills up with what one would expect and everything
> works. I don't believe a log of EmbperlObject working correctly would be
> useful so I'm not posting it.
>
>  The only thing I see is:
>
> (in my error log immediately after a reload)
>
> [Tue Jun  5 08:44:32 2001] [error] EmbperlObject searched
> ';/home/httpd/html/example;/home/httpd/html'
>
> I'm using Perl Version 5.6.0 packaged by RedHat.
> Embperl 1.3.2 from perl.apache.org
>
> I can't use 1.2.1 because it segfaults.
>
> DSL
>
> ---------------------------------------------------------------------
> 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: EmbperlObject + ApacheStatINC Woes

Posted by David Lloyd <ll...@rebel.net.au>.
It just kills it totally. Either embperl.log is not made, or no lines
are added to it. The moment I remove PerlInitHandler Apache::StatINC,
/tmp/embperl.log fills up with what one would expect and everything
works. I don't believe a log of EmbperlObject working correctly would be
useful so I'm not posting it.

 The only thing I see is:

(in my error log immediately after a reload)

[Tue Jun  5 08:44:32 2001] [error] EmbperlObject searched
';/home/httpd/html/example;/home/httpd/html'

I'm using Perl Version 5.6.0 packaged by RedHat.
Embperl 1.3.2 from perl.apache.org

I can't use 1.2.1 because it segfaults.

DSL

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


Re: EmbperlObject + ApacheStatINC Woes

Posted by Gerald Richter <ri...@ecos.de>.
>
> Now, under this setup if I have Apache::StatINC compiled,
> HTML::EmbperlObject refuses to find any pages no matter what I call
> them. If I comment out or delete any references to Apache::StatINC then
> HTML::EmbperlObject suddenly works.
>
> Is this a known problem or clash?
>

You config seems to be ok. I don't know of any problems with
Apache::StatINC, also I didn't have tried it on my own. I prefer to use
Apache::Reload, because you can tell Apache::Reload which modules to reload,
so it doesn't have to check all modules, which makes requests faster.

If you prefer to use Apache::StatINC, I need a the message from the httpd
error log and the embperl.log file with EMBPERL_DEBUG set to 0xf7c7cfd, to
be able to say more about this problem. Also which version of Perl and
Embperl you are using.

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