我已经安装了带有xampp.I的Apache2.4,我尝试使用上面提到的here步骤添加mod_wsgi
但当我添加这行
LoadModule wsgi_module modules/mod_wsgi-py34-vc10.soApache未启动。
发布于 2017-02-18 04:47:11
最好是自己从代码中构建mod_wsgi,而不是使用网上的任意二进制文件。具体步骤如下。
pip安装模块了。这必须包括拥有该Python版本所需的正确的Microsoft编译器。pip install mod_wsgi。如果您的Apache安装位置不是C:/Apache24,那么首先将环境变量MOD_WSGI_APACHE_ROOTDIR设置为它的位置。确保将path指定为C:/Apache24格式,而不是使用反斜杠,即不是C:\Apache24。这只在安装时才需要,而不是以后。WSGI mod_wsgi-express module-config的输出添加到您的Apache配置文件中。请注意,在最初测试时,最好从WSGI hello world开始,而不是从一些大型的Django应用程序开始。
发布于 2018-02-24 20:18:12
如果您仍然找到c:\apache24\include\apr_network_io.h(29) : fatal error C1083: Cannot open include file: 'apr_perms_set.h': No such file or directory'.,请使用Apache Lounge的发行版。这最适合Windows。
发布于 2017-09-15 17:23:46
This topic is useful for Windows 10, xampp webserver as well.
I was struggling to find precompiled mod_wsgi.so for
Apache/2.4.27 (Win32)
Python/2.7.13
This [link][1] is useful to find the appropriate version of mod_wsgi.
IF you are lucky, you can find the precompiled version [here][2]
There is a step by step guidance available [here][3]
[1]: https://github.com/GrahamDumpleton/mod_wsgi/blob/develop/win32/README.rst
[2]: http://www.lfd.uci.edu/~gohlke/pythonlibs/#mod_wsgi
[3]: https://everything2.com/title/Installing+Python+on+XAMPPhttps://stackoverflow.com/questions/42298503
复制相似问题