On Jan 12, 11:20 am, Graham Dumpleton <[email protected]> wrote: > For when you set WSGIPythonHome, can you look through log files for > line generated by: > > ap_log_error(APLOG_MARK, WSGI_LOG_INFO(0), wsgi_server, > "mod_wsgi (pid=%d): Python home %s.", getpid(), > wsgi_server_config->python_home); > > I want to confirm that WSGIPythonHome was actually applied and what > you set it to. It should work just as if PATH was set.
What I can found in my logs is the following, and further I could see the line with "Adding '/usr/local' to path" only when apache start from a shell where in PATH is set the python path (/usr/local/bin). I set the WSGIPythonHome in httpd.conf at '/usr/local' [Fri Jan 02 08:27:53 1970] [info] mod_wsgi (pid=1921): Initializing Python. [Fri Jan 02 08:27:53 1970] [info] mod_wsgi (pid=1920): Initializing Python. [Fri Jan 02 08:27:53 1970] [info] mod_wsgi (pid=1921): Attach interpreter ''. [Fri Jan 02 08:27:53 1970] [info] mod_wsgi (pid=1921): Adding '/usr/ local/' to path. [Fri Jan 02 08:27:53 1970] [info] mod_wsgi (pid=1920): Attach interpreter ''. > > Also post what you get for value of 'sys.prefix' when printed out from > command line Python and also what you get for 'which python'. Python 2.6.2 (r262:71600, Dec 17 2009, 17:16:21) [GCC 4.1.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> sys.prefix '/usr/local' mx27# which python mx27# I don't have anything in PATH since this is a base scratch minimal distro :-), I use it to do some tests... and this is because, I think, I need to set the PATH to the python path '/usr/local/bin' when I exec the httpd daemon. Maja
-- You received this message because you are subscribed to the Google Groups "modwsgi" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en.
