You are setting WSGIPythonHome to wrong value.

Run python2.6 and do:

  import sys
  sys.prefix

You should set WSGIPythonHome to the value of that.

Graham

On 28 June 2011 08:56, Marko Mekapses <[email protected]> wrote:
> I'm trying to get mod_wsgi working with python 2.6 instead of 2.7.
> i've both set PYTHONHOME in /etc/apache2/envvars, which does nothing,
> and set WSGIPythonHome in /etc/apache2/httpd.conf, which causes the
> repeated error
>
> [Mon Jun 27 18:46:25 2011] [info] mod_wsgi (pid=8139): Python home /
> usr/bin/python2.6.
> [Mon Jun 27 18:46:25 2011] [info] mod_wsgi (pid=8139): Initializing
> Python.
> ImportError: No module named site
>
> Not sure what's going on... oddly enough, /usr/bin/python links to /
> usr/bin/python2.6....
> I'm baffled for the time being...
>
> Thanks,
> --marko
>
> --
> 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.
>
>

-- 
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.

Reply via email to