i get the following in the apache error log:
[Thu Dec 15 17:12:20 2005] [notice] Apache/2.0.55 (Unix)
mod_python/3.1.4 Python/2.4.2 configured -- resuming normal operations
[Thu Dec 15 17:12:40 2005] [notice] mod_python: (Re)importing module
'mpcp'
[Thu Dec 15 17:12:40 2005] [notice] child pid 16305 exit signal
Segmentation fault (11)
[Thu Dec 15 17:13:39 2005] [notice] caught SIGTERM, shutting down
my project_start.py file works fine without apache.
any suggestions?
thanks.
If you're running on Linux, there's a section that you should take a
look at after "Good luck!"
Let me know if this helps at all.
Jared
Try with the simplest mp_test.py script from the modpython
documentation, and then try to import some modules in it, like expat
and similar... to see when it breaks.
I'm suspecting your problem might be beacuse of a conflict of libraries
used by python and apache.
Robert Brewer
System Architect
Amor Ministries
fuma...@amor.org
One example is expat, I'm sure Apache has it's own expat version and
it's hard to make it compile with the system expat... and I beleive
Python too comes with it's own version of expat.
The easiest way to try is use the simplest mod_python test handler and
then try to import pyexpat.
I think, what I did was recompile Python's pyexpat to link the system
expat library, and tried to do the same with apache. Maybe you should
ask on the mod_python mail list or on an Apache forum.
The problem is also mentioned here:
http://www.modpython.org/FAQ/faqw.py?req=show&file=faq02.013.htp
http://www.dscpl.com.au/articles/modpython-006.html
I just replaced my system expat libs to match those used by Apache, and
have eliminated those seg faults.
Jeremy, the problem is not in mod_python itself.
The problem is when you put together python and apache which are using
different versions of the same library (expat, mysql, libpng etc)...
It's even worse if you also use mod_php because it brings it's own set
of libraries too.