1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Trac and subversion

Discussion in 'Plesk for Linux - 8.x and Older' started by bluefossil, Sep 16, 2005.

  1. bluefossil

    bluefossil Guest

    0
     
    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?
     
  2. mian

    mian Guest

    0
     
    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>
    
     
  3. bluefossil

    bluefossil Guest

    0
     
    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?
     
  4. mian

    mian Guest

    0
     
    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
    
     
  5. bluefossil

    bluefossil Guest

    0
     
    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!
     
  6. acidbox

    acidbox Guest

    0
     
    I've got subversion working ok, but when I try to import to it via Tortoise, I keep getting this error:
    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?
     
  7. masterkain

    masterkain Guest

    0
     
    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.
     
  8. masterkain

    masterkain Guest

    0
     
Loading...