Wednesday 4 May 2011

Practice Trac on CentOS 5 x86_64

Trac is written in the Python programming language(Open Source)

Python: python-2.4.3-43.el5
Database: SQLite  (python-sqlite-1.1.7-1.2.1)
Version Control System: Subversion  (subversion-1.6.11-7.el5_6.3)
Web Server: Apache (httpd-2.2.3-45.el5.centos)

Creating a Project Environment:
After install, create a new environment using trac-admin: 
#trac-admin /path/to/myproject initenv 
make sure the apache can access project folder
#chown -R apache.apache /path/to/myproject
  
Trac Configuration File:
My <projectenv> /var/trac/test/
The Trac Configuration File: /var/trac/test/conf/trac.ini
Changes to the configuration are usually reflected immediately, though changes to the [components] or [logging] sections will require restarting the web server. You may also need to restart the web server after creating a global configuration file when none was previously present.
See the details of all the sections here.

Install plugins:
Download the source and run "python ./setup.py bdist_egg" and
copy the resulting .egg file from the "dist" directory to the
"plugins" directory of your Trac project.

enable the plugin is done in the [components] section of the configuration file, for example, enable tractoc plugin:

[components]
tractoc.* = enabled

Note: After installing the plugin, you need to restart your web server. 
#sudo /etc/init.d/httpd restart

No comments:

Post a Comment