Page Title
Body Gregg Pollack (gregg at patchedsoftware dot com) contributed this walkthrough. The following are the commands will get trac running on your server. # sudo vi /etc/sysconfig/rhn/sources<br /> ## add 'yum rpmforge http://apt.sw.be/redhat/el4/en/i386/dag/' at the end of this file # sudo rpm --import http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt # wget http://dag.wieers.com/packages/rpmforge-release/rpmforge-release-0.3.4-1.el4.rf.i386.rpm # rpm -Uvh rpmforge-release-0.3.4-1.el4.rf.i386.rpm # sudo up2date -i trac # sudo yum install httpd-devel # wget http://apache.mirrors.tds.net/httpd/modpython/mod_python-3.2.10.tgz # tar -xzvf mod_python-3.2.10.tgz # cd mod_python-3.2.10 # ./configure --with-apxs2=/usr/sbin/apxs # sudo yum install python-devel # make # su # make install # sudo vi /etc/httpd/conf/httpd.conf # Add <code>LoadModule python_module /usr/lib/httpd/modules/mod_python.so</code> # Make a trac directory - mkdir /var/www/apps/trac # Create a trac project - trac-admin /var/www/apps/trac/ProjectA initenv # Added to httpd.config <pre><code><VirtualHost *:80> ServerName trac.projectA.com <Location /> SetHandler mod_python PythonHandler trac.web.modpython_frontend PythonOption TracEnv /var/www/apps/trac/ProjectA PythonOption TracUriRoot / </Location> <Location "/login"> AuthType Basic AuthName "trac" AuthUserFile /etc/svn-auth-file Require valid-user </Location> </VirtualHost></code></pre> As you can see, we're using and svn-auth-file to do security. Checkout the [[InstallingMod_dav_svn|mod_dav_svn tutorial]] if you don't know how. Restart Apache, and you should be golden. If you want more security (since the default trac allows anyone to go in and post stuff), move all the Auth lines in the second location tag into the first, so that Basic Authentication is needed to view the site at all.
Make page private