Search code examples
apachetrac

how to get trac to run with apache?


i have some problems getting trac to be running with apache.

have no idea of how to do and the tutorial i followed doesnt work.

http://trac.edgewall.org/wiki/TracModPython

i have an empty /etc/apache2/httpd.conf. should it be empty?

then i followed the tutorial and typed in:

LoadModule python_module modules/mod_python.so

so now it contains one row. i have ubuntu and i installed mod_python with:

apt-get install libapache2-mod-python libapache2-mod-python-doc

however, when i run a2enmod mod_python it says:

ERROR: Module mod_python does not exist!

but i have checked that it exists in /usr/lib/apache2/modules/mod_python.so.

so whats the problem?


Solution

  • Usually, installing mod_python via:

    apt-get install libapache2-mod-python
    

    will enable it. If it does not, the correct command is:

    a2enmod python
    

    note, the module is 'python', not 'mod_python'.