| 127 | === mod_python Install === |
| 128 | |
| 129 | The above instructions are for a CGI-based install. For a simple mod_python install, within your existing Virtual Host: |
| 130 | |
| 131 | {{{ apt-get install libapache2-mod-python }}} |
| 132 | |
| 133 | Follow steps 1 & 2 above. For step 3, here's simple config (this would go inside your existing Virtual Host definition). You also shouldn't have to do any of the other stuff in step 3. |
| 134 | |
| 135 | {{{ |
| 136 | <Location /trac> |
| 137 | SetHandler mod_python |
| 138 | PythonHandler trac.ModPythonHandler # For Breezy++ use: PythonHandler trac.web.modpython_frontend |
| 139 | PythonOption TracEnv /var/trac |
| 140 | PythonOption TracUriRoot "/trac" |
| 141 | </Location> |
| 142 | }}} |
| 143 | |
| 144 | For more complex mod_python configs, see TracModPython |
| 145 | |
| 146 | Now, follow the Subversion setup instructions in Step 4 (just the Subversion setup - you don't have to do the rest). Next, |
| 147 | |
| 148 | {{{ |
| 149 | sudo chown -R www-data /var/svn/YourProjectNameHere |
| 150 | sudo /etc/init.d/apache2 restart |
| 151 | }}} |
| 152 | |
| 153 | Then set up the Trac environment. |
| 154 | {{{ |
| 155 | sudo mkdir /var/trac |
| 156 | sudo trac-admin /var/trac/YourProjectNameHere initenv |
| 157 | sudo chown -R www-data /var/trac/YourProjectNameHere |
| 158 | }}} |
| 159 | |
| 160 | Now, you should be able to access Trac at http://youserver.name/trac |
| 161 | |