How can I get mod_wsgi working on Mac?

前端 未结 9 2095
眼角桃花
眼角桃花 2021-02-08 15:53

I have been trying to install the latest version of mod_wsgi (3.3) since hours on my Mac. I\'m on Snow Leopard and I have the versions of Apache (Apache/2.2.15) and Python 2.6.1

9条回答
  •  不要未来只要你来
    2021-02-08 16:25

    Mac OS X comes with apache 2, to install mod_wsgi just install homebrew and run the following command.

    *brew install homebrew/apache/mod_wsgi*
    

    go to apache2/modules/ and search for mod_wsgi.so
    after this goto apache2/conf/ and do

    *sudo vim http.conf* 
    

    and add the following line
    LoadModule wsgi_module modules/mod_wsgi.so

提交回复
热议问题