How can I get mod_wsgi working on Mac?

前端 未结 9 1957
眼角桃花
眼角桃花 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:36

    I had to first run the below command to get mod_wsgi installed

    brew tap homebrew/apache
    

    And then run

    brew install mod_wsgi
    
    0 讨论(0)
  • 2021-02-08 16:39

    The problem you had was the path to mod_wsgi.so. On OS X the appropriate line is

    LoadModule wsgi_module        libexec/apache2/mod_wsgi.so
    
    0 讨论(0)
  • 2021-02-08 16:47

    I was having trouble getting mod_wsgi to work as well even using different peoples advice and it wasn't working, so I finally used this website: https://pypi.python.org/pypi/mod_wsgi

    1. Downloaded the mod_wsgi 4.5.15 file

    2. Opened the file in a location I liked

    3. Went to folder location in terminal

    4. Did python3 setup.py install (or python if you're using a different version)

    I have a MacBook Pro Version 10.12.5 in case this helps anyone.

    0 讨论(0)
提交回复
热议问题