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