I'm trying to get www/trac running on FreeBSD 10.3-RELEASE amd64
I am getting "500 server error" and looking at my logs I see in trac-error_log:
And in more detail in httpd-error.log
ImportError: No module named mod_python.apache
My /usr/local/etc/apache24/extra/httpd-vhosts.conf looks like:
I am confident it's a trivial misconfiguration issue, but most answers I find by googling are along the lines of "why aren't you using WSGIScript," which may be a valid question.
I am getting "500 server error" and looking at my logs I see in trac-error_log:
Code:
[Fri Mar 24 11:10:23.282925 2017] [:error] [pid 21554:tid 34741511168] [client xxx.127.65.15:22736] python_handler: Can't get/create interpreter.
And in more detail in httpd-error.log
ImportError: No module named mod_python.apache
Code:
[Fri Mar 24 11:10:23.282850 2017] [:error] [pid 21554:tid 34741511168] make_obcallback: Python path being used "['/usr/local/lib/python27.zip', '/usr/local/lib/python2.7', '/usr/local/lib/python2.7/plat-freebsd10', '/usr/local/lib/python2.7/lib-tk', '/usr/local/lib/python2.7/lib-old', '/usr/local/lib/python2.7/lib-dynload']".
[Fri Mar 24 11:10:23.282888 2017] [:error] [pid 21554:tid 34741511168] get_interpreter: no interpreter callback found.
My /usr/local/etc/apache24/extra/httpd-vhosts.conf looks like:
Code:
<VirtualHost 10.3.69.139:80>
# registrar nic.st
DocumentRoot /usr/local/www/trac
ServerName trac.my.domain
ErrorLog /var/log/trac-error_log
CustomLog /var/log/trac-access_log combined
<Location />
SetHandler mod_python
PythonInterpreter main_interpreter
PythonOption PYTHON_EGG_CACHE /usr/local/www/trac/tmp
PythonPath "sys.path + ['/usr/local/www/trac', '/usr/local/bin/mod_python']"
PythonPath /usr/local/bin/mod_python
PythonHandler trac.web.modpython_frontend
PythonOption TracEnv /usr/local/www/trac
PythonOption TracUriRoot /
</Location>
</VirtualHost>
# pkg version -v | grep 'mod_python\|trac\|apache'
Code:
ap24-mod_python35-3.5.0_2 = up-to-date with index
apache24-2.4.25_1 = up-to-date with index
trac-1.2 = up-to-date with index
I am confident it's a trivial misconfiguration issue, but most answers I find by googling are along the lines of "why aren't you using WSGIScript," which may be a valid question.