Richard Lee
2015-03-13 05:08:05 UTC
hello,
I'm trying to organise *mod_wsgi *on my desktop at home (Windows 8.1
64-bit), hoping to pair it with Apache2.4 / Django / Python 3.4
I have read the following very carefully
<https://github.com/GrahamDumpleton/mod_wsgi/blob/develop/win32/README.rst>,
and was working through the "hello world" case
<https://code.google.com/p/modwsgi/wiki/QuickConfigurationGuide> to
localise to my machine, but am still running into difficulties
The VC compiler alignment requirements are tough and quite cryptic, so I am
posting here to ask if I have any missing steps. I even tried to download
Microsoft Visual Studio at one point to compile it myself, but wasn't sure
which version and to no avail- it did not have *nmake.exe *in the contents.
The steps I have taken thusfar:
1. Install Apache 2.4 binary from Apache Lounge, *httpd-2.4.12-win64.zip* and
getting the basic test page operational.
2. Set Apache logging level from "warn" to "debug"
3. Installed Python *python-3.4.2.amd64.msi *for my 64-bit windows
machine
4. Downloaded the pre-compiled binary, *mod_wsgi-4.4.10+ap24vc10-cp34-none-win_amd64.whl
*from uci.edu download site
<http://www.lfd.uci.edu/~gohlke/pythonlibs/#mod_wsgi> ,
- aligning it to Python 3.4.2 VC10, and Apache VC10
- renaming it to *mod_wsgi.so *and putting it into the
*Apache24/modules* directory
5. Added the following to /conf/
LoadModule wsgi_module modules/mod_wsgi.so
Are there any other issues I might have missed? I'm a little bit lost here
and there seem to be many steps where something could go wrong.
Thanks and Kind Regards
Richard Lee
I'm trying to organise *mod_wsgi *on my desktop at home (Windows 8.1
64-bit), hoping to pair it with Apache2.4 / Django / Python 3.4
I have read the following very carefully
<https://github.com/GrahamDumpleton/mod_wsgi/blob/develop/win32/README.rst>,
and was working through the "hello world" case
<https://code.google.com/p/modwsgi/wiki/QuickConfigurationGuide> to
localise to my machine, but am still running into difficulties
The VC compiler alignment requirements are tough and quite cryptic, so I am
posting here to ask if I have any missing steps. I even tried to download
Microsoft Visual Studio at one point to compile it myself, but wasn't sure
which version and to no avail- it did not have *nmake.exe *in the contents.
The steps I have taken thusfar:
1. Install Apache 2.4 binary from Apache Lounge, *httpd-2.4.12-win64.zip* and
getting the basic test page operational.
2. Set Apache logging level from "warn" to "debug"
3. Installed Python *python-3.4.2.amd64.msi *for my 64-bit windows
machine
4. Downloaded the pre-compiled binary, *mod_wsgi-4.4.10+ap24vc10-cp34-none-win_amd64.whl
*from uci.edu download site
<http://www.lfd.uci.edu/~gohlke/pythonlibs/#mod_wsgi> ,
- aligning it to Python 3.4.2 VC10, and Apache VC10
- renaming it to *mod_wsgi.so *and putting it into the
*Apache24/modules* directory
5. Added the following to /conf/
LoadModule wsgi_module modules/mod_wsgi.so
...
WSGIScriptAlias /myapp "c:/Apache24/wsgi-scripts/myapp.wsgi"
<Directory "c:/Apache24/wsgi-scripts">
Order allow,deny
Allow from all
</Directory>
C:\Apache24\bin>httpd -k restart
httpd: Syntax error on line 177 of C:/Apache24/conf/httpd.conf: Cannot
load modules/mod_wsgi.so into server: %1 is not a valid Win32 application.
I'm not sure the material in Step 4 is usuable as a *mod_wsgi.so *file?WSGIScriptAlias /myapp "c:/Apache24/wsgi-scripts/myapp.wsgi"
<Directory "c:/Apache24/wsgi-scripts">
Order allow,deny
Allow from all
</Directory>
C:\Apache24\bin>httpd -k restart
httpd: Syntax error on line 177 of C:/Apache24/conf/httpd.conf: Cannot
load modules/mod_wsgi.so into server: %1 is not a valid Win32 application.
Are there any other issues I might have missed? I'm a little bit lost here
and there seem to be many steps where something could go wrong.
Thanks and Kind Regards
Richard Lee
--
You received this message because you are subscribed to the Google Groups "modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to modwsgi+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to modwsgi+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.