Hi Graham,
Thanks a lot for your quick reply!
I'm sorry for the inappropriate title wasted your time :(
I think my config is probably right.
The error log in my first post looks abnormal is because my copy/paste
mistake. Actually it is
Cannot load L:/Program Files/Apache Software Foundation/Apache2.2/
modules/mod_wsgi-win32-ap22py27-3.3.so into server: \xd5\xd2\xb2\xbb
\xb5\xbd\xd6\xb8\xb6\xa8\xb5\xc4\xc4\xa3\xbf\xe9\xa1\xa3
I copied both mod_wsgi-win32-ap22py26-3.3.so and mod_wsgi-win32-
ap22py27-3.3.so into "L:\Program Files\Apache Software Foundation
\Apache2.2\modules".
And added this line to httpd.conf, the position is the last LoadModule
command,
LoadModule wsgi_module modules/mod_wsgi-win32-ap22py27-3.3.so
If I point it to mod_wsgi-win32-ap22py26-3.3.so, it is ok, but if to
mod_wsgi-win32-ap22py27-3.3, the error above appears.
and the httpd.conf is based on the default conf, I just added the
LoadModule mod_wsgi and added some virtualhost.
I am sorry I dont quite understand what is a "complete stop of
Apache".
I use the Apache Service Monitor, either stop then start or restart,
the apache server can not start.
The difference is that, the error log "Cannot load ..." only appear
when restart. if stop then start, it will not throw this error, but
still fail to start.
Thanks again for your reply.
On Dec 12, 3:37 pm, Graham Dumpleton <[email protected]>
wrote:
> Sorry, I sent that off in a hurry based only on what the subject line
> was when I moderated it and without reading content. None of the
> references are probably relevant to you. :-)
>
> Anyway the error says:
>
> Cannot load L:/Program Files/Apache Software Foundation/Apache2.2/
> modules/.so into server: \xd5\xd2\xb2\xbb\xb5\xbd
> \xd6\xb8\xb6\xa8\xb5\xc4\xc4\xa3\xbf\xe9\xa1\xa3
>
> which suggests you got the path to mod_wsgi.so for that version wrong
> as is trying to reference a .so file in the modules directory and not
> a 'mod_wsgi.so' file.
>
> What is your LoadModule line? What did you name the .so files when put
> in modules directory? Did you do a complete stop of Apache when
> changing which Python variant of mod_wsgi was used?
>
> Graham
>
> On 12 December 2010 17:57, Graham Dumpleton <[email protected]>
> wrote:
>
>
>
>
>
>
>
> > See:
>
> > http://code.google.com/p/modwsgi/wiki/CheckingYourInstallation#Python...
> > http://code.google.com/p/modwsgi/wiki/CheckingYourInstallation#Python...
> > http://code.google.com/p/modwsgi/wiki/InstallationIssues#Multiple_Pyt...
>
> > Other parts of those documents may also be relevant.
>
> > Graham
>
> > On 12 December 2010 17:31, Dan <[email protected]> wrote:
> >> Hi All,
>
> >> I have 2 python installed on my machine, one is python2.6(at L:
> >> \python26), the other is python2.7(at L:\python27), then which
> >> mod_wsgi should I use, the one for py26 or the one for py27? In my
> >> mind, both should be ok.
>
> >> I have tried both of them, the mod_wsgi-win32-ap22py26-3.3 works well,
> >> and mod_wsgi-win32-ap22py27-3.3 always throw an error:
> >> Cannot load L:/Program Files/Apache Software Foundation/Apache2.2/
> >> modules/.so into server: \xd5\xd2\xb2\xbb\xb5\xbd
> >> \xd6\xb8\xb6\xa8\xb5\xc4\xc4\xa3\xbf\xe9\xa1\xa3
>
> >> So it seems that mod_wsgi-win32-ap22py27-3.3 encountered problems when
> >> do the initial check?
> >> How can I make mod_wsgi-win32-ap22py27-3.3 work?
>
> >> Any help will be highly appreciated!
>
> >> --
> >> 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
> >> athttp://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.