Skip navigation

Assuming you’ve downloaded ./configure && make && make install the latest nginx and have mysql, svn already installed. More info on installing svn and setting up svn here.

apt-get install trac
apt-get install python-mysqldb

Now once I’ll assume you’ve set up an svn repostitory in /home/svn/myproject.

trac-admin /home/trac/myproject initenv #fill in details here assume project name is myproject
htdigest -c /home/trac/myproject.passwd my_username
trac-admin /home/trac/myproject permission add my_username TRAC_ADMIN
chown -R www-data /home/trac/myproject
sudo -u www-data tracd -d -p 3110 --auth=myproject,/home/trac/myproject.passwd, /home/trac/myproject

Now you have a tracd server daemonized.

Now add an nginx conf file in your nginx conf directory:

 upstream live_trachosts_com {
  server {
          listen          80;
          location / {
                rewrite ^/$ /myproject last;
                  proxy_pass      http://live_trachosts_com;

Now restart/reload Nginx.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: