# Apt-Get install Python-Babel
# Apt-Get install TRAC
# Easy_install Babel
# Easy_install TRAC
# Mkdir-P/var/www/trac_test
# Trac-admin/var/www/trac_test initenv #> MYSQL: // username: password @ wwwhost: 3306/trac_test
# Htpasswd-C/var/www/trac_test/. htpasswd adminusername
# Trac-admin/var/www/trac_test permission add adminusername trac_admin
# Chown-r www-data:/var/www/trac_test
# Chmod-r 775/var/www/trac_test
# Vi/etc/apache2/sites-available/trac_test
<Location/trac_test> # Set up TRAC handling
Sethandler mod_python
Pythoninterpreter main_interpreter
Pythonhandler TRAC. Web. modpython_frontend
Pythonoption tracenvparentdir/var/www/trac_test
Pythonoption tracuriroot/trac_test
Pythonoption tracenv/var/www/trac_test
Pythonoption tracwwwe en_us.utf8
Pythonoption python_egg_cache/tmp
Order allow, deny
Allow from all
Authtype basic
Authname "trac_test"
Authuserfile/var/www/trac_test/. htpasswd
Require valid-user
</Location>
# Sudo apt-Get install libapache2-mod-python
# A2enmod Python
# A2ensite TRAC
# Service apache2 restart