Created
October 18, 2016 08:28
-
-
Save ozooxo/c69f8db42877df8997b1e25fcb654cb7 to your computer and use it in GitHub Desktop.
Install Trac on Ubuntu 14.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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