Re: [mp2] Child process exited

2003-08-12 Thread Jean-Sebastien Guay
So, did anyone have time to check this out? This is pretty major for me,
I can't implement mod_perl at my site until I find out what is causing
this crash and fix it. And I really have no idea what could be causing
it.

I'm using CGI.pm 2.98, Template-Toolkit 2.10, Apache/2.0.47 (Win32)
mod_perl/1.99_10-dev Perl/v5.8.0.

So please, if someone on a similar setup could download the test case at
http://pages.infinit.net/jeans13/ApacheCrash.zip and see if the crash
happens for them too... Remember to read the README file first...

Thanks,

J-S

- Original Message - 
From: "Jean-Sebastien Guay" <[EMAIL PROTECTED]>
To: "Stas Bekman" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, August 08, 2003 1:13 PM
Subject: Re: [mp2] Child process exited


> > >>Is it only mp2 that it fails under?
> > >>I've tried it under mp1.28/perl5.8.0/apache1.3.27 on WinXP and it
> runs
> > >
> > > fine.
> > >
> > > I haven't tried other mod_perl versions, since the threading issue
> would
> > > render the site unusable.
> >
> > so I assume that there is no point trying it on linux, if Steve
can't
> see it
> > on win. right?
>
> Not at all, Steve didn't see it on Windows with *another* version of
> mod_perl... I'm using 1.99_10, he was using 1.28. So if you can test
> under Linux with 1.99_10, it might have the same problem.
>
> And if someone else on Windows could test with 1.99_10 as well, I
would
> be grateful.
>
> Thanks,
>
> J-S
>
> ___
> Jean-Sébastien Guay  [EMAIL PROTECTED]
> Software Developer, Hybride http://www.hybride.com
> Piedmont, Québec, Canada
>
>
>
>




Re[2]: How to restart the root server from within modperl?

2003-08-12 Thread Mike P. Mikhailov
Hello Dirk Lutzebaeck,

Tuesday, August 12, 2003, 3:50:01 PM, you wrote:


DL> Dennis Stout writes:
DL>  > On a whim, I would try writing a second script to do the actual shutdown and
DL>  > restart of Apache.
DL>  > 
DL>  > Then have your mod_perl program either run it in the background (with a &) or
DL>  > fork it into another process.

DL> Did exactly that but is has the effect that when the parent (root)
DL> apache is killed it kills all children including the script itself. So
DL> the server wont start again.

DL> Dirk

Try double fork. I'm used this approach to start long running job.
Job must be done even apache process die. So they completly detached
from parent apache process.

Read this, I hope this relevant

http://perl.apache.org/docs/1.0/guide/performance.html#Avoiding_Zombie_Processes

-- 
WBR, Mike P. Mikhailov

mailto: [EMAIL PROTECTED]
ICQ:280990142

If you put three drops of poison into a 100 percent pure Java, you get - Windows.
If you put a few drops of Java into Windows, you still have Windows.



Re: Mod_perl how to include the result of mod_autoindex?

2003-08-12 Thread Christopher Grau
On Mon, Aug 11, 2003 at 08:37:19AM -0700, Coexec wrote:
> The end user will submit a form.  One of the values in
> that form will be a path on the local web server.  So
> in the return of the CGI, I want to include the
> results of Apache's autoindex.  I cannot figure out
> how to do it.  If I could pass a variable from a CGI
> to an SSI, the problem would be solved, but I do not
> believe that it is possible.  I have been looking at
> Apache::SSI and Apache::AutoIndex but I don't think I
> can get them to do what I need.  Does anyone have any
> suggestions or recommendations?

You could probably issue a subrequest in a CGI program running under
Apache::Registry, though I'm unsure how to go about capturing the output
of a subrequest.  However, it would probably be easier to use
Apache::Filter with your own Perl handler:

PerlModule Apache::Filter
PerlModule Apache::Icon
PerlModule Apache::AutoIndex
PerlModule Apache::MyHandler


  PerlSetVar Filter On

  SetHandler perl-script
  PerlTransHandler Apache::AutoIndex::transhandler
  PerlHandler Apache::AutoIndex Apache::MyHandler


Then your handler can take the output of Apache::AutoIndex and do whatever
it likes to it in the same manner as Apache::SSI.  The perldoc for
Apache::Filter shows you just how to do this.

-chris


Apache 2.0, mod_perl filter question

2003-08-12 Thread Ilia Rassadzin
Hello mod_perl,

I have some problems with filtering HTTPS traffic.
I modified for my needs FilterSnoop module from Stas
Bekman filter tutorial. It perfectly sees HTTP data,
but not HTTPS.
Does anyone have any suggestions(ideas) about how to
implement a filter which will see HTTPS?

Thanks in advance
Ilia


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com