How to install mod_wsgi from lfd in 2015

谁说胖子不能爱 提交于 2020-01-04 05:07:10

问题


How can I install mod_wsgi from lfd website as it has wheel extension.Whenever I am searching how to install mod_wsgi on wamp the resources tell me to install binary from this site and then keep the mod_wsgi.so file in my wamp directory.


回答1:


On the lfd page is a link to:

  • https://github.com/GrahamDumpleton/mod_wsgi/blob/master/win32/README.rst

You may want to read that.

The official mod_wsgi download area has binaries as .so files as explained in that link.

You can still use the whl versions when you work out how to install them, but the .so option does still exist.




回答2:


The WHL files from LFD (http://www.lfd.uci.edu/~gohlke/pythonlibs/#mod_wsgi) DO contain the pre-built WSGI module, but for obscure reasons it is called mod_wsgi.pyd. You can find it in c:/python27/lib/site-packages/mod_wsgi/server/ (or whatever your Python installation or virtual environment path is).

Just rename it to mod_wsgi.so and copy it to the modules directory if Apache.

To get some initial help with setting up the Apache configuration, you may run

c:/python27/Scripts\mod_wsgi-express.exe module-config

More information about mod_wsgi on Windows and compatibility can be found here: https://github.com/GrahamDumpleton/mod_wsgi/blob/master/win32/README.rst



来源:https://stackoverflow.com/questions/28364368/how-to-install-mod-wsgi-from-lfd-in-2015

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!