Install trac on linux

Source: Internet
Author: User


1, http://trac.edgewall.org/
2. install apache, python, mod_wsgi, mysql www.2cto.com 3, and install trac (my version is 0.12) tar-zxvf the installation package cd trac installation directory python setup. py install 4, location where the trac-admin project is created (my project name is/var/www/html/first initenv, and the database connection string are entered to generate the htdocs and cgi/wsgi required for the project's web site and other scripts. Trac-admin/var/www/html/first deploy/var/www/html/tmp/first copy to the project directory cp-r/var/www/html/tmp/first/ /var/www/html/first/www.2cto.com
5. Configure apache to configure $ htpasswd-c/somewhere/trac. htpasswd admin New password: <type password> Re-type new password: <type password again> Adding password for user admin open httpd. the conf file must be changed to DocumentRoot. process the path of your web directory (my files are/var/www/html) and wsgi script: WSGIScriptAlias/var/www/html/first/cgi-bin/trac. wsgi <Directory/var/www/html/first/cgi-bin> WSGIApplicationGroup % {GLOBAL} Order deny, allow Allow from all </Directory> and user authentication <LocationMatch "/first/login"> AuthType Basic AuthName "Trac" AuthUserFile/var/www/html/trac. htpasswd Require valid-user </LocationMatch> www.2cto.com restart apache apachectl restart to open the browser: http: // 195.12.11.11/first. when the egg-cache directory cannot be created, the following prompt is displayed: I directly created this directory under/var/www/html/first. After granting it the maximum permission to download the directory, I can log on to it.
6. Grant admin management permissions to trac-admin/var/www/html/first permission add admin TRAC_ADMIN
Prepared by ximenyiren

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.