Code: Alles auswählen
apt-get install trac python-mysqldb libapache2-mod-python
Code: Alles auswählen
mkdir /pfad/zum/webserver/
mkdir /pfad/zum/webserver/www/
mkdir /pfad/zum/webserver/logs/
Code: Alles auswählen
CREATE USER 'trac'@'localhost' IDENTIFIED BY 'deinPasswort';
GRANT USAGE ON * . * TO 'trac'@'localhost' IDENTIFIED BY 'deinPasswort' WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0 ;
CREATE DATABASE IF NOT EXISTS `trac` ;
GRANT ALL PRIVILEGES ON `trac` . * TO 'trac'@'localhost';
Code: Alles auswählen
trac-admin /pfad/zum/webserver/www/ initenv
Code: Alles auswählen
Database connection string [sqlite:db/trac.db]> mysql://trac:deinPasswort@localhost:3306/trac
Code: Alles auswählen
<VirtualHost *>
DocumentRoot /pfad/zum/webserver/www/
ServerName trac.domain.de
ServerAlias
CustomLog /pfad/zum/webserver/logs/httpd.log "combined"
ErrorLog /pfad/zum/webserver/logs/error.log
Alias /stat "/pfad/zum/webserver/stat/"
Alias /chrome/common /pfad/zum/webserver/www/htdocs/common
Alias /chrome/site /pfad/zum/webserver/www/htdocs/site
<Directory "/pfad/zum/webserver/www/htdocs">
Order allow,deny
Allow from all
</Directory>
<Location "/chrome/common/">
SetHandler None
</Location>
<Location />
SetHandler mod_python
PythonHandler trac.web.modpython_frontend
PythonOption TracEnv /pfad/zum/webserver/www
PythonOption TracUriRoot /
</Location>
<Location "/login">
AuthType Basic
AuthName "Geschützter Bereich"
AuthUserFile /pfad/zum/webserver/www/.htpasswd
Require valid-user
</Location>
</VirtualHost>
Code: Alles auswählen
a2ensite trac.domain.de.conf
Code: Alles auswählen
htpasswd -c /pfad/zum/webserver/www/.htpasswd Username
http://trac.edgewall.org/wiki/TracOnDebian
http://trac.edgewall.org/wiki/0.11/TracEnvironment
http://pc-freak.net/blog/how-to-install ... velopment/