title: How can Apache use Py3 instesd of Py2?
body: <p>How can Apache use Python/3.x instesd of Python/2.x ?</p>
  
  <p>I'm now trying to set up Django application on server with Py3.
  The command <code>python manage.py runserver</code> was successful.
  Then I tried to use <code>Apache</code> and <code>mod_wsgi</code> but I got <code>Internal Server Error</code>.</p>
  
  <p>The error logs said that</p>
  
  <pre><code>[mpm_prefork:notice] [pid 30732] AH00163: Apache/2.4.6 (CentOS) mod_wsgi/3.4 Python/2.7.5 configured -- resuming normal operations
  </code></pre>
  
  <p>but the default python was Py3.</p>
  
  <pre><code># python -V
  Python 3.5.1
  </code></pre>
  
  <p>I wondered the error would be fixed  when apache use Py3. How about you?
  How can I specify Py3?</p>
  
  <h1>Start command</h1>
  
  <pre><code># /etc/init.d/httpd restart
  </code></pre>
  
  <h1>Full error logs</h1>
  
  <pre><code>$ tailf  /etc/httpd/logs/error_log
  [Thu Jul 21 15:32:20.626731 2016] [auth_digest:notice] [pid 30732] AH01757: generating secret for digest authentication ...
  [Thu Jul 21 15:32:20.627378 2016] [lbmethod_heartbeat:notice] [pid 30732] AH02282: No slotmem from mod_heartmonitor
  [Thu Jul 21 15:32:20.629557 2016] [mpm_prefork:notice] [pid 30732] AH00163: Apache/2.4.6 (CentOS) mod_wsgi/3.4 Python/2.7.5 configured -- resuming normal operations
  [Thu Jul 21 15:32:20.629580 2016] [core:notice] [pid 30732] AH00094: Command line: '/usr/sbin/httpd'
  [Thu Jul 21 15:37:31.940196 2016] [mpm_prefork:notice] [pid 30732] AH00169: caught SIGTERM, shutting down
  [Thu Jul 21 15:37:31.981414 2016] [suexec:notice] [pid 30777] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
  [Thu Jul 21 15:37:31.993034 2016] [auth_digest:notice] [pid 30778] AH01757: generating secret for digest authentication ...
  [Thu Jul 21 15:37:31.993935 2016] [lbmethod_heartbeat:notice] [pid 30778] AH02282: No slotmem from mod_heartmonitor
  [Thu Jul 21 15:37:31.996832 2016] [mpm_prefork:notice] [pid 30778] AH00163: Apache/2.4.6 (CentOS) mod_wsgi/3.4 Python/2.7.5 configured -- resuming normal operations
  [Thu Jul 21 15:37:31.996866 2016] [core:notice] [pid 30778] AH00094: Command line: '/usr/sbin/httpd'
  </code></pre>
  
  <h1>environment</h1>
  
  <pre><code>Apache/2.4.6 (CentOS) 
  mod_wsgi/3.4
  Python 3.5.1
  Django 1.9
  CentOS 7.1
  </code></pre>