Ubuntu apache2 MySQL TRAC

Source: Internet
Author: User

# 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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.