Re: Initializing Sleepycat::DbXml (Berkeley, Oracle) objects in startup.pl

2009-01-16 Thread mackenna
What I did to get worker and event working under FreeBSD 6.3, was to eliminate the child_init handler, and at the start of the response handler do something like my $env; sub handler { # this is the response handler my ($r) = @_; if (!$env) { $env = DbEnv->new;

Re: generic enquiry about rendering zipped content

2009-01-16 Thread Torsten Foertsch
On Fri 16 Jan 2009, André Warnier wrote: > What exact form would a HTTP response need to have, for the browser > to correctly interpret that the response it is getting is a document > (for example an OpenOffice document or an email in eml format), but > which has been zipped for transmission ? > >

Re: Initializing Sleepycat::DbXml (Berkeley, Oracle) objects in startup.pl

2009-01-16 Thread Michael Ludwig
Mark Hedges schrieb: *** glibc detected *** free(): invalid pointer: 0x084e6a14 *** If this didn't work in a response handler, I'd guess there's something else wrong. That's the kind of error you get when you use things under threads that are not thread-safe in some way, I remember that sort

generic enquiry about rendering zipped content

2009-01-16 Thread André Warnier
Hi. Question : What exact form would a HTTP response need to have, for the browser to correctly interpret that the response it is getting is a document (for example an OpenOffice document or an email in eml format), but which has been zipped for transmission ? What I would like to happen is

Re: Separate Error log for each virtual host

2009-01-16 Thread Torsten Foertsch
On Fri 16 Jan 2009, fREW Schmidt wrote: > I would like to configure apache such that the errors for a specific > virtual host get logged in their own file.  I tried something like > this: > > >    ErrorLog "C:/location/of/acd/logs/error.log" >     >       use lib 'C:/location/of/acd'; >       $ENV

[BUG] CGI param does not reset

2009-01-16 Thread Theung, John
Hello, I just built a new vanilla server, Apache/2.0.63 (Unix) mod_perl/2.0.4 Perl/v5.8.0 under Solaris 10. I noticed that the $cgi->param does not reset in the mod_perl directories. When I run the following program, it works fine under the standard cgi-bin, but produces what appears to be cached r

Re: Apache2::Reload: Where is it?

2009-01-16 Thread Foo JH
fREW Schmidt wrote: > [Thu Jan 15 17:34:21 2009] [error] Can't locate Apache2/Reload.pm in > @INC (@INC contains: C:/usr/site/lib C:/usr/lib . C:/Program > Files/Apache Software Foundation/Apache2.2) at (eval 3) line 3.\n > [Thu Jan 15 17:34:21 2009] [error] Can't load Perl module > Apache2::Reloa

Re: Initializing Sleepycat::DbXml (Berkeley, Oracle) objects in startup.pl

2009-01-16 Thread mackenna
I started with 'worker', and it had similar performance to what I saw thereafter with 'event'. Actually slightly better, perhaps because 'event' gained no advantage from KeepAlive because each test process stayed locked to one connection. 'worker' and 'event' were experiments that I decided to t

Re: Separate Error log for each virtual host

2009-01-16 Thread fREW Schmidt
>> Yeah, I have another virtualhost at *:80 with it's own ErrorLog >> directive, but of course it still doesn't seem to honor that and puts >> the errorlog in the default place anyway. > > This doesn't really have anything to do with mod_perl at all i think you > might want to try removing all the

Re: Separate Error log for each virtual host

2009-01-16 Thread Adam Prime
fREW Schmidt wrote: > Yeah, I have another virtualhost at *:80 with it's own ErrorLog directive, but of course it still doesn't seem to honor that and puts the errorlog in the default place anyway. This doesn't really have anything to do with mod_perl at all i think you might want to try remov

Re: Initializing Sleepycat::DbXml (Berkeley, Oracle) objects in startup.pl

2009-01-16 Thread Adam Prime
macke...@animalhead.com wrote: Apache is forgiving/robust about specifying nonexistent phase handlers in httpd.conf and inserts thereto. I was using event, and had to let each thread open its own DBs based on an undefined global. Then I found that the identical traffic-test exerciser could get

Re: Separate Error log for each virtual host

2009-01-16 Thread fREW Schmidt
On Fri, Jan 16, 2009 at 9:59 AM, Adam Prime wrote: > fREW Schmidt wrote: >> >> I would like to configure apache such that the errors for a specific >> virtual host get logged in their own file. I tried something like this: >> >> >> ErrorLog "C:/location/of/acd/logs/error.log" >> >> use

Re: Separate Error log for each virtual host

2009-01-16 Thread Adam Prime
fREW Schmidt wrote: I would like to configure apache such that the errors for a specific virtual host get logged in their own file. I tried something like this: ErrorLog "C:/location/of/acd/logs/error.log" use lib 'C:/location/of/acd'; $ENV{MODE} = 'development'; Sc

Separate Error log for each virtual host

2009-01-16 Thread fREW Schmidt
I would like to configure apache such that the errors for a specific virtual host get logged in their own file. I tried something like this: ErrorLog "C:/location/of/acd/logs/error.log" use lib 'C:/location/of/acd'; $ENV{MODE} = 'development'; ScriptAlias / "C:/locatti

Re: Initializing Sleepycat::DbXml (Berkeley, Oracle) objects in startup.pl

2009-01-16 Thread Michael Ludwig
macke...@animalhead.com schrieb: Apache is forgiving/robust about specifying nonexistent phase handlers in httpd.conf and inserts thereto. Thanks. I noticed. :-) I was using event, and had to let each thread open its own DBs based on an undefined global. Then I found that the identical traff

Re: Initializing Sleepycat::DbXml (Berkeley, Oracle) objects in startup.pl

2009-01-16 Thread Michael Ludwig
Mark Hedges schrieb: On Thu, 15 Jan 2009, Michael Ludwig wrote: PerlRequire /home/milu/www/eumel/startup.pl PerlChildInitHandler Eumel::Gurke::bla; PerlChildExitHandler Eumel::Gurke2::bla; No trailing semicolons? That was a copy and paste error when composing the mail. But this is an impor