Problem of loading mod_wsgi module into apache on Windows 64-bit

后端 未结 3 746
一个人的身影
一个人的身影 2021-02-06 05:11

I\'m trying to install mod_wsgi module followed this instruction. I\'ve downloaded mod_wsgi.so from this source. It seems like apache cannot restart services properly and the pa

3条回答
  •  死守一世寂寞
    2021-02-06 05:23

    I was faced with this situation as well, and Apache would run on windows 64bit, but won't if mod_wsgi is loaded.

    I found a solution which is pretty simple:

    1. Download and install a 64-bit version of Apache which is easily handled if you download and install from http://wampserver.com/
    2. Download mod_wsgi from this page
    3. Extract the content of the downloaded zipped file into c:\wamp\bin\apache\Apache2.2.21\modules\ and
    4. Edit httpd.conf and add a line like: LoadModule wsgi_module modules/mod_wsgi.so
    5. Restart apache and you can then continue your django development.

    Summary: Everything (both apache and mod_wsgi) has to be 64bit for you to be able to run Apache/mod_wsgi on a 64-bit windows.

提交回复
热议问题