title: using Django with Apache, mod-wsgi and mod-wsgi_httpd
body: <p>(Sorry, my English may be not fluent.)<br>
  I'm studying about Django, a module of Python, with Windows10, and have something to ask.<br>
  I've learned tutorial of official website of Django. Now I want to try using it with apache and mod-wsgi, but a command <code>pip install mod-wsgi_httpd</code> wasn't accepted.
  Here is what I've done or checked.<br>
  1. python3.6 works with no problem.<br>
  2. installed apache, and successed indicating default page on port 80 on localhost.<br>
  3. the command <code>pip install mod_wsgi</code> wasn't accepted, so I installed 'whl' file from
  <a href="https://www.ifd.uci.edu/~gohlke/pythonlibs/#mod_wsgi" rel="nofollow noreferrer">https://www.ifd.uci.edu/~gohlke/pythonlibs/#mod_wsgi</a>
  but I've not checked whether it works well because I've not installed mod-wsgi_httpd. The <code>pip install mod_wsgi</code> generated this error, which I couldn't deal with.(I extracted the latter part, because the log was too long.)</p>
  
  <pre><code> copying docs\_build\html\security-issues.html -&gt; build\lib.win-amd64-3.6\mod_wsgi\docs
      copying docs\_build\html\source-code.html -&gt; build\lib.win-amd64-3.6\mod_wsgi\docs
      copying docs\_build\html\troubleshooting.html -&gt; build\lib.win-amd64-3.6\mod_wsgi\docs
      copying docs\_build\html\user-guides.html -&gt; build\lib.win-amd64-3.6\mod_wsgi\docs
      copying images\snake-whiskey.jpg -&gt; build\lib.win-amd64-3.6\mod_wsgi\images
      running build_ext
      building 'mod_wsgi.server.mod_wsgi' extension
      Exception in thread Thread-1:
      Traceback (most recent call last):
        File "c:\python\python36\lib\threading.py", line 916, in _bootstrap_inner
          self.run()
        File "c:\python\python36\lib\threading.py", line 864, in run
          self._target(*self._args, **self._kwargs)
        File "c:\python\python36\lib\distutils\_msvccompiler.py", line 69, in _getall
          all_packages.extend(_distutils_findvs.findall())
      OSError: Error 80070002
  
      creating build\temp.win-amd64-3.6
      creating build\temp.win-amd64-3.6\Release
      creating build\temp.win-amd64-3.6\Release\src
      creating build\temp.win-amd64-3.6\Release\src\server
      C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD "-IC:/Program Files/Apache/Apache24/include" -Ic:\python\python36\include -Ic:\python\python36\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\winrt" /Tcsrc/server\mod_wsgi.c /Fobuild\temp.win-amd64-3.6\Release\src/server\mod_wsgi.obj
      mod_wsgi.c
      c:\python\python36\include\pyconfig.h(307): warning C4005: 'PLATFORM': macro redefinition
      c:\program files\apache\apache24\include\os.h(42): note: see previous definition of 'PLATFORM'
      src/server\mod_wsgi.c(471): warning C4267: 'initializing': conversion from 'size_t' to 'long', possible loss of data
      src/server\mod_wsgi.c(472): warning C4267: 'initializing': conversion from 'size_t' to 'long', possible loss of data
      src/server\mod_wsgi.c(580): warning C4267: '=': conversion from 'size_t' to 'long', possible loss of data
      src/server\mod_wsgi.c(729): warning C4267: '=': conversion from 'size_t' to 'long', possible loss of data
      src/server\mod_wsgi.c(775): warning C4267: '=': conversion from 'size_t' to 'long', possible loss of data
      src/server\mod_wsgi.c(1860): warning C4244: '=': conversion from 'Py_ssize_t' to 'long', possible loss of data
      src/server\mod_wsgi.c(3434): warning C4244: '=': conversion from 'Py_ssize_t' to 'long', possible loss of data
      src/server\mod_wsgi.c(4251): error C2065: 'wsgi_daemon_process': undeclared identifier
      src/server\mod_wsgi.c(4417): error C2065: 'wsgi_daemon_process': undeclared identifier
      src/server\mod_wsgi.c(4417): error C2223: left of '-&gt;group' must point to struct/union
      src/server\mod_wsgi.c(6052): warning C4244: 'return': conversion from '__int64' to 'long', possible loss of data
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status 2
  
      ----------------------------------------
  Command "c:\python\python36\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\拓海\\AppData\\Local\\Temp\\pip-build-brq4sh13\\mod-wsgi\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\拓海\AppData\Local\Temp\pip-zwr3dv_t-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\拓海\AppData\Local\Temp\pip-build-brq4sh13\mod-wsgi\
  </code></pre>
  
  <p><br>
  <br>
  I'll the response of command prompt in the end of this question.<br></p>
  
  <p>These are what I want to ask.<br>
  1. What should I do to install mod-wsgi_httpd?<br>
  2. What can I do with mod-wsgi_httpd? (the official website of Django tells me about mod-wsgi, but doesn't about mod-wsgi_httpd. The official website of Python tells me too, but it was too abstract for me.)<br>
  3. Some websites tell me that apache doesn't work without APR, but apache enabled me the default page without installing APR. Is this information wrong?<br></p>
  
  <pre><code>C:\Users\拓海&gt;pip install mod-wsgi_httpd
  Collecting mod-wsgi_httpd
    Using cached mod_wsgi-httpd-2.4.27.1.tar.gz
      Complete output from command python setup.py egg_info:
      'rm' は、内部コマンドまたは外部コマンド、
      操作可能なプログラムまたはバッチ ファイルとして認識されていません。
      Traceback (most recent call last):
        File "&lt;string&gt;", line 1, in &lt;module&gt;
        File "C:\Users\拓海\AppData\Local\Temp\pip-build-zt76ing5\mod-wsgi-httpd\setup.py", line 77, in &lt;module&gt;
          raise RuntimeError('Failed to build APR.')
      RuntimeError: Failed to build APR.
  
      ----------------------------------------
  Command "python setup.py egg_info" failed with error code 1 in C:\Users\拓海\AppData\Local\Temp\pip-build-zt76ing5\mod-wsgi-httpd\
  
  C:\Users\拓海&gt;python --version
  Python 3.6.4
  
  C:\Users\拓海&gt;pip freeze
  Django==2.0.2
  mod-wsgi==4.5.24+ap24vc14
  mysql-connector-python==8.0.6
  PyMySQL==0.8.0
  pytz==2018.3
  
  C:\Program Files\Apache\Apache24&gt;bin\httpd.exe -v
  Server version: Apache/2.4.29 (Win64)
  Apache Lounge VC15 Server built:   Nov  3 2017 11:12:00
  </code></pre>