Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install Trac on Ubuntu 14.04
apt-get install python python-babel
sudo apt install -y trac libapache2-mod-wsgi
apt-get install python-pip
pip install --upgrade Babel
pip install --upgrade Trac
mkdir -p /var/local/trac
trac-admin /var/local/trac initenv
htpasswd -c /var/local/trac/.htpasswd adminusername
trac-admin /var/local/trac permission add adminusername TRAC_ADMIN
chown -R www-data: /var/local/trac
chmod -R 775 /var/local/trac
sudo trac-admin /var/lib/trac/test deploy /var/www/html/trac
sudo chown -R www-data:www-data /var/www/html/trac
sudo gedit /etc/apache2/sites-available/trac.conf
######
WSGIScriptAlias /trac /var/www/html/trac/cgi-bin/trac.wsgi
<Directory /opt/trac>
WSGIApplicationGroup %{GLOBAL}
Order deny,allow
Allow from all
</Directory>
######
sudo apt-get install libapache2-mod-python
a2enmod python
a2ensite trac.conf
service apache2 restart
Then trac is ready on localhost/trac
refer:
https://trac.edgewall.org/wiki/TracOnUbuntu (doesn't work)
http://www.hiroom2.com/2016/08/06/ubuntu-16-04-install-trac/ (doesn't work)
https://help.ubuntu.com/community/TracApacheModWsgi (seems work, nice tutorial)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.