@@ -9,22 +9,26 @@ Requirements
9
9
------------
10
10
To install Trac, the following software packages must be installed:
11
11
12
- * Python, version >= 2.1.
13
- + Please keep in mind, that for RPM-based systems you will also need
14
- python-devel and python-xml packages.
15
- * Subversion, version >= 1.0. (>=1.0.5 recommended)
16
- * Subversion Python bindings.
17
- * PySQLite, version >= 0.5.
18
- * Clearsilver, version >= 0.9.3
19
- * A CGI-capable web server (we QA-test on Apache2 )
12
+ * Python, version >= 2.2.
13
+ + Please keep in mind, that for RPM-based systems you will also need
14
+ python-devel and python-xml packages.
15
+ * Subversion, version >= 1.0. (1.1.4 recommended)
16
+ * Subversion Python bindings.
17
+ * PySQLite, version >= 0.5 (1.1.6 recommended)
18
+ * Clearsilver, version >= 0.9.3 (0.9.14 recommended)
19
+ * A CGI-capable web server (we QA-test on Apache2)
20
+
21
+ Note that trac can also use run in standalone mode (see README.tracd)
22
+
20
23
21
24
Installing Trac
22
25
---------------
23
- $ python ./setup.py install
26
+
27
+ $ python ./setup.py install
24
28
25
29
This will byte-compile the python source code and install it in the
26
30
site-packages directory of your python installation. The directories cgi-bin,
27
- templates, htdocs and wiki-default are all copied to $prefix/share/trac/ .
31
+ templates, htdocs and wiki-default are all copied to `` $prefix/share/trac/`` .
28
32
29
33
The script will also install the trac-admin command-line tool, used to create
30
34
and maintain project environments. Trac-admin is the command center of Trac.
@@ -36,15 +40,15 @@ Advanced Users
36
40
To install Trac in a different location, and other advanced installation
37
41
options, run:
38
42
39
- $ python ./setup.py --help
43
+ $ python ./setup.py --help
40
44
41
45
Installing Trac on Windows
42
46
--------------------------
43
47
If you downloaded the Trac installer (the .exe file), installing is simply a
44
48
matter of running the installer.
45
49
46
50
* NOTE: The windows installer also includes the Clearsilver DLL, so you do
47
- _NOT_ have to install it manually when using the installer.
51
+ *NOT* have to install it manually when using the installer.
48
52
49
53
After running the installer, configuration and installation is the same as
50
54
for other platforms.
@@ -58,7 +62,7 @@ log-files and attachments.
58
62
59
63
A new Trac environment is created with trac-admin:
60
64
61
- $ trac-admin /path/to/projectenv initenv
65
+ $ trac-admin /path/to/projectenv initenv
62
66
63
67
Note: The web server user need write permission to the environment directory
64
68
and all the files inside.
@@ -68,38 +72,40 @@ it can find the trac templates directory (the default value should be fine).
68
72
69
73
Configuring Apache
70
74
------------------
71
- Copy (or symlink) " trac/cgi-bin/trac.cgi" to you web servers /cgi-bin/
72
- directory. You can also configure apache to use the " trac/cgi-bin/" directory
75
+ Copy (or symlink) `` trac/cgi-bin/trac.cgi`` to you web servers `` /cgi-bin/``
76
+ directory. You can also configure apache to use the `` trac/cgi-bin/`` directory
73
77
directly if you like, it's a matter of taste.
74
78
75
- Finally edit the apache config and add this config snippet, with filenams
79
+ Finally edit the apache config and add this config snippet, with filenames
76
80
edited to match your installation:
77
81
78
- Alias /trac/ "/usr/share/trac/htdocs/" #or where you installed the trac docs
79
- #You have to allow people to read the files in htdocs
80
- <Directory "/usr/share/trac/htdocs/">
81
- Options Indexes MultiViews
82
- AllowOverride None
83
- Order allow,deny
84
- Allow from all
85
- </Directory>
86
-
87
-
88
- # Trac need to know where the database is located
89
- <Location "/cgi-bin/trac.cgi">
90
- SetEnv TRAC_ENV "/path/to/projectenv"
91
- </Location>
92
-
93
- # You need this to allow users to authenticate
94
- # trac.htpasswd can be created with
95
- # cmd 'htpasswd -c trac.htpasswd' (UNIX)
96
- # do 'man htpasswd' to see all the options
97
- <Location "/cgi-bin/trac.cgi/login">
98
- AuthType Basic
99
- AuthName "trac"
100
- AuthUserFile /somewhere/trac.htpasswd
101
- Require valid-user
102
- </location>
82
+ ::
83
+
84
+ Alias /trac/ "/usr/share/trac/htdocs/" #or where you installed the trac docs
85
+ #You have to allow people to read the files in htdocs
86
+ <Directory "/usr/share/trac/htdocs/">
87
+ Options Indexes MultiViews
88
+ AllowOverride None
89
+ Order allow,deny
90
+ Allow from all
91
+ </Directory>
92
+
93
+
94
+ # Trac need to know where the database is located
95
+ <Location "/cgi-bin/trac.cgi">
96
+ SetEnv TRAC_ENV "/path/to/projectenv"
97
+ </Location>
98
+
99
+ # You need this to allow users to authenticate
100
+ # trac.htpasswd can be created with
101
+ # cmd 'htpasswd -c trac.htpasswd' (UNIX)
102
+ # do 'man htpasswd' to see all the options
103
+ <Location "/cgi-bin/trac.cgi/login">
104
+ AuthType Basic
105
+ AuthName "trac"
106
+ AuthUserFile /somewhere/trac.htpasswd
107
+ Require valid-user
108
+ </location>
103
109
104
110
Note: When creating a new environment, trac-admin will print a config snippet
105
111
customized for your project.
@@ -108,7 +114,7 @@ Using Trac
108
114
----------
109
115
You should now have a working Trac installation at:
110
116
111
- http://<yourhostname>/cgi-bin/trac.cgi
117
+ http://<yourhostname>/cgi-bin/trac.cgi
112
118
113
119
There you should be able to browse your subversion repository, create tickets,
114
120
view the timeline etc. Keep in mind that anonymous users (not logged in) can
0 commit comments