[mod_python] how to run python code in the parent apache process

simeon ivanov simo at simoivanov.com
Thu Jun 23 15:52:34 EDT 2005


Is it possible to run python code in the parent apache process, similar
to what happens in mod_perl? From looking at the docs and the code, it
seems that module imports happen on the child initialization stage,
after the child processes fork from the parent process. In the
particular setup I am considering it is okay to use a single interpreter
for the whole server.  Is there any particular reason why python code
should not be loaded in the parent startup stage?

Best regards:

More information about the Mod_python mailing list