Re: autoflush behavior for subrequests
John Williams <[email protected]>
| Newsgroups | gmane.comp.web.mason.devel |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 12 Oct 2004, Jonathan Swartz wrote: > > Interp::_initialize tries to automatically create the data_dir if it does > > not exist. It succeeds under Apache1, but under Apache2, root level > > access has already been given up by the time ApacheHandler->new is called. > > I have made the error about this situation much more explicit as well. > > Interesting. I assume ApacheHandler->new is still being called in the > parent process? If not that messes up a whole bunch of > performance-related features like component preloading. Well, it depends on when ApacheHandler->new is called. If the ApacheHandler is created inside the handler() function (at request time), it is not done in the parent process, and it does not have permissions to create the data_dir. If you defining your own handler script and create it outside the handler() function, it does happen in the parent process, and it does succeed in creating the data_dir. When you use MasonConfigWhatever directives in httpd.conf, the creation happens inside handler(), so this is an issue for many (and most new) users. ~ John Williams ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl