Edgewall Software

Ticket #3883 (closed task: worksforme)

Opened 2 years ago

Last modified 2 years ago

Debian 3.1 Sarge - Trac Installation always fails

Reported by: tahirk@… Owned by: jonas
Priority: low Milestone:
Component: general Version: 0.8.4
Severity: normal Keywords:
Cc:

Description

I am trying to install Trac on a new Debian 3.1 linux box and so far have encountered two strange problems.

First when attempting to use the mod_python method I get a page loading that is missing the stylesheet information.

If I use the older cgi method to configure my server then the intial trac page loads fine with all the styling/graphics where they should be however none of the links work and I receive the following error message:

The requested URL /wiki/TitleIndex was not found on this server

* in the above example I attempted to view the wiki *

I have configured the server to host trac so I needed trac to be the root application on the server when someone browses to it. Following the Debian guides that I managed to find I ended up with the following config:

Debian 3.1 Sarge - 2.6.8-3-686 Kernel Clean build, only base and kernel modules loaded Apaache2 from the debian repository python modules subversion, also from the current Deb repository trac, from the edgewall repository

I configured everything with basic settings to keep the setup simple for testing. Got subversion up and running first and then used trac-admin to create a new project. Following the guides I ended up with this apache2 site config:

NameVirtualHost *
<VirtualHost *>
        ServerName somehost.someserver.com
        DocumentRoot /var/trac/myproject

        ErrorLog /var/log/apache2/error.log

        LogLevel warn

        CustomLog /var/log/apache2/access.log combined
        ServerSignature On

Alias /trac /usr/share/trac/htdocs
ScriptAlias / /usr/share/trac/cgi-bin/trac.cgi
<Location />
 SetEnv TRAC_ENV /var/trac/myproject
</Location>

<Directory /usr/share/trac/htdocs>
  Options Indexes MultiViews
  AllowOverride None
  Order allow,deny
  Allow from all
</Directory>

# You need something like this to authenticate users
<Location /myproject/login>
  AuthType Basic
  AuthName "Test - Trac Server"
  AuthUserFile /etc/apache2/svn.passwd
  Require valid-user
</Location>

</VirtualHost>

I am finding the whole trac web application very difficult to setup on Debian and losing confidence in what looks like a brilliant application once you figure out how to get it working.

Could someone direct me a good guide that explains in clear terms what needs to be setup and how.

The current documentation regading Debian is a little disappointing and I amn finding the information in snipets in several different documents which really does not help any first time trac users (especially those of us using the popular Debian OS).

Thanks in advance,

Tk - Vurso

Attachments

Change History

Changed 2 years ago by anonymous

  • priority changed from normal to low
  • status changed from new to closed
  • resolution set to fixed
  • type changed from defect to task

Resolved:

Appears I was trying to map to the root / path which trac did not like (think it was conflicting with SVN).

I created alias name for the project e.g. /myproject/ which resolved the problem (so my url is http://myserver.com/myproject/ - not what I was after originally but it will do).

Changed 2 years ago by mgood

  • status changed from closed to reopened
  • resolution fixed deleted

The fixed resolution is only used for tickets requiring a code change.

Changed 2 years ago by mgood

  • status changed from reopened to closed
  • resolution set to worksforme

Fixing resolution.

Add/Change #3883 (Debian 3.1 Sarge - Trac Installation always fails)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.