[mod_python] PYTHONPATH and mod_python

Soenke Ruempler - NorthClick soenke.ruempler at northclick.de
Thu Dec 21 07:00:22 EST 2006

Hi Graham,

Thanks for your answer.

Graham Dumpleton <mailto:grahamd at dscpl.com.au> wrote on Wednesday, December
20, 2006 10:32 PM:

> Apache is normally run as a separate user. The PYTHONPATH
> variable definition
> has to be set in the environment of that user. If the way
> Apache is started at
> reboot means it doesn't actually inherit the environment of
> that user, then it
> would have to be set somehow in the Apache startup scripts.
> At the moment I am assuming that you are only setting
> PYTHONPATH in your own
> account and it has perhaps worked prior to the reboot as the
> means you were
> using to restart Apache was inheriting it from your own environment.

I exported PYTHONPATH before starting Apache. See my previous mail. Any
other suggestions?


More information about the Mod_python mailing list