• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Trac and subversion

B

bluefossil

Guest
Hi,

Anyone out there who had any luck in successfully installing Trac (and Subversion) on Plesk 7.5.2 (or 7.5.4)?

I have tried by following the online documentation, and fighting all the dependencies issues, finally able to install both Trac and Subversion and creating a project using trac-admin (or so it seems). But I can't view anything on the website. Going to the trac.cgi script shows a server 500 error.

Any one has any idea?
 
this is my configuration which works fine. it is setup for multiple projects using http://forged.domain.com/projects/<project>

Code:
RewriteEngine on
RewriteRule ^/projects/+$                                    /projects/index.php  [L]
RewriteCond /home/httpd/vhosts/domain.com/private/tracs/$1/VERSION  -f
RewriteRule ^/projects/([^/]+)(/?.*)                         /projects/wrap.cgi$2 [S=1,E=TRAC_ENV:/home/httpd/vhosts/domain.com/private/tracs/$1]
RewriteRule ^/projects/(.*)     /projects/index.php

Alias /trac/ /usr/share/trac/htdocs/

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

<Directory /home/httpd/vhosts/domain.com/subdomains/forged/httpdocs/projects>
        AllowOverride none
        Options ExecCGI -Multiviews +SymLinksIfOwnerMatch
        AddHandler cgi-script .cgi
        Order allow,deny
        Allow from all
</Directory>

<Location /svn>
        DAV svn
        SVNParentPath /svn
        <LimitExcept GET PROPFIND OPTIONS REPORT>
                AuthType Basic
                AuthName "Authorized Area"
                AuthUserFile /home/httpd/vhosts/domain.com/pd/d..trac
                Require valid-user
        </LimitExcept>
</Location>

<LocationMatch /projects/[[:alnum:]]+>
        AuthType Basic
        AuthName "Authorized Area"
        AuthUserFile /home/httpd/vhosts/domain.com/pd/d..trac
        Require valid-user
</LocationMatch>
 
Thanks mian. But I couldn't quite get it to work. Now, where do I actually put that into? I tried vhost.conf and httpd.conf but still not working. Maybe I'm missing something somewhere?
 
I have mine in vhost.conf in a subdomain then run websrvmng or whatever to apply the configuration ofcourse.

remember to create the trac project btw, i forget how as mine was setup along time ago but i store mine in the private directory. the following line checks for the existance of the project, $1 will be translated into the project name eg `blah'

Code:
RewriteCond /home/httpd/vhosts/domain.com/private/tracs/$1/VERSION  -f
 
I have finally gotten Trac up and running, after much fight. Turned out to be that firstly, the permissions of the relevant files were wrong, and secondly, I was supposed to make some changes to how the PythonHandler is used (see this). Once I got it changed to

Code:
PythonHandler trac.web.modpython_frontend

it started working fine.

mian's entries are valid, but not relevant to the problems i was facing, as the script itself was not working correctly, hence the rewrite wouldn't be too much of a help. But it was helpful once i got the scripts up and running.

Just thought I could post here (and tie up the loose ends) in case someone stumbles upon this later on looking for some answers.

Cheers!
 
I've got subversion working ok, but when I try to import to it via Tortoise, I keep getting this error:
Error: PROPFIND request failed on '/svn/myproject'
Error: PROPFIND of '/svn/myproject': 301 Moved Permanently (http://www.mydomain.com)

My directory structure is like this:

Code:
/httpdocs
/httpdocs/svn/ (symlink => ../subversion)
/subversion
/subversion/myproject

It's not leaving any errors in my error_log or anything, so I'm not sure what to do.

I saw this FAQ entry that seemed to cover exactly what I have, but my subversion repos is not in the DocumentRoot, so I think i'm ok.

Anyone know how to resolve this?
 
someone can please write some tutorial how to properly setting up trac + svn + plesk on a debian stable?

I tried to search everything, without luck.

thanks.
 
Back
Top