Two messages with (more or less) the same problem.
Jonas Liljegren <[EMAIL PROTECTED]> said something to this effect on 11/26/2001:
> I have had a problem with using compile_dir / compile_ext when
> initializing TT in the parent apache process. The TTC files is
> owned by root and can't be overwritten by the child processes.
>
> I don't know how to fix it. They should be chowned to the User
> for the VirtualHost or server config.
>
> It's just the path that gets created. And only the first time.
Have you tried initializing TT in the children? What are you
doing to create compiled files in the parent process? Just
loading TT shouldn't create the directories mentioned in
COMPILE_DIR; if you are precompiling templates, call umask in the
script which does the precompiling.
A quick test shows that just loading TT and instantiating a
Template::Provider instance doesn't create the COMPILE_DIR
directories.
Brett Sanger <[EMAIL PROTECTED]> said something to this effect on 11/26/2001:
> Our webserver has all it's standard files owned by our webdev
> group, which every developer is part of.
>
> Using CGI.pm, we can normally run our scripts from the command
> line. TT's compiled files, however, are created without the
> write permission to the group, which means our scripts get
> spiteful and mean if we try to run them from the command line.
> Is there any way to change this behavior?
You should be able to chmod g+ws the directory, and files created
within the directory will have the same permissions as the
directory, rather than have the default umask dictate.
HTML::Mason has specific capabilities to chown files written by
the process; should TT have a similar capability? Perhaps a
COMPILE_OWNER directive which tells the Provider class to do
$< = $> (or is it the other way around? I can never remember...)
before writing files. That would only work for root, of course,
which is fine.
(darren)
--
The means by which we live have outdistanced the ends for which
we live. Our scientific power has outrun our spiritual power. We
have guided missiles and misguided men.
-- Martin Luther King, Jr.