[mod_python] Two mod_python applications crashing each other

Chris Jackson christopher.jackson at gmail.com
Thu Jun 16 16:05:31 EDT 2005


Thanks Nick!

 I believe PythonInterpPerDirective works for me..  So far, so good.

I have it like so:

# First app
<Directory /path/to/app1>
...
PythonInterpPerDirective On
...
</Directory>

# Second app
<Directory /path/to/app2>
...
PythonInterpPerDirective On
...
</Directory>

Thanks again,

~= Chris =~
On 6/16/05, Nick <nick at dd.revealed.net> wrote:
> See http://modpython.org/live/current/doc-html/dir-other-ipdv.html,
> hopefully that's all your problem is.
> 
> Nick
> 
> Chris Jackson wrote:
> > I have two mod_python applications running on one server and there
> > seems to be a resource contingency between the two causing 1 of the
> > two to crash.
> >
> > Consider,
> >
> > htdocs/app1/
> > htdocs/app2/
> >
> > app1 has a <Directive> using SetHandler and mod_python.publisher
> >
> > app2 has a <Directive> using AddHandler and mod_python.psp
> >
> > When these two apps are running on the same server, ImportErrors
> > arrise crashing app1 with the following error:
> >
> > PythonHandler mod_python.publisher: ImportError: No module named <blah>
> >
> > It's as if it forgets where it resides.
> >
> > <My Configuration>
> >
> > Apache/2.0.52 (Unix) mod_python/3.1.3 Python/2.4 Server
> >
> > </My Configuration>
> >
> > Can anyone shed some light on this.
> >
> > Thanks,
> >
> > ~= Chris =~
> >
> > _______________________________________________
> > Mod_python mailing list
> > Mod_python at modpython.org
> > http://mailman.modpython.org/mailman/listinfo/mod_python
> 
>



More information about the Mod_python mailing list