Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

#3883 closed task (worksforme)

Debian 3.1 Sarge - Trac Installation always fails

Reported by: tahirk@… Owned by: Jonas Borgström
Priority: low Milestone:
Component: general Version: 0.8.4
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

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 (0)

Change History (3)

comment:1 by anonymous, 18 years ago

Priority: normallow
Resolution: fixed
Status: newclosed
Type: defecttask

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).

comment:2 by Matthew Good, 18 years ago

Resolution: fixed
Status: closedreopened

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

comment:3 by Matthew Good, 18 years ago

Resolution: worksforme
Status: reopenedclosed

Fixing resolution.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.