On Sat, Jan 24, 2004 at 02:28:04PM -0800, Josh Chamas wrote:
> >Hrm, I guess with the way configuration files are parsed, at the time
> >startup.pl is being executed it does not have access to the PerlSetVar
> >configurations?
> >
> 
> Even if it did ( of which I am not so sure ), it would not
> necessarily know which PerlSetVar to merge for which files that
> would correspond to the same set of ASP files at runtime.  One could
> imagine many different ASP applications with different PerlSetVar
> settings in the same httpd.conf

I wonder if in the following case...

<VirtualHost 1.2.3.4>
ServerName site1.com
PerlSetVar Global /home/site1/global
PerlRequire startup.pl
</VirtualHost>

<VirtualHost 1.2.3.4>
ServerName site2.com
PerlSetVar Global /home/site2/global
PerlRequire startup.pl
</VirtualHost>

the two different startup.pls could somehow read the correct value of
Global, since their own PerlRequire statements are inside different
<VirtualHost> containers. I don't know how it works, though... I think
I'll ask on the mod_perl list.

> >I tried that (I assume you meant Debug -1 in httpd.conf, not the
> >Loader() %config?), but I got lost in the sheer volume of output. Is
> >there a string (e.g. "compiling") that I can grep for?
> 
> If you find that things are "parsing" at runtime, then they are not 
> precompiled.

They were parsing. It turned out that I had forgotten to set UseStrict
and IncludesDir in %config, and had also forgotten to include ~/inc
(that's my IncludesDir; for some reason those scripts didn't get
compiled, even though other scripts which did get compiled called
them) in the Loader path.

After fixing my configuration I tried it again and it doesn't say
"parsing" in the error_log anymore. Thanks!

BTW, http://www.apache-asp.org/tuning.html#Precompile says "The
%config args, are the config options that you want set that affect
compilation. These options include Debug, Global, GlobalPackage,
DynamicIncludes, StatINC, StatINCMatch, XMLSubsMatch, and
XMLSubsStrict." I think that list of options should also include
IncludesDir and UseStrict.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to