[TUT] Don't want to buy a Trac/SVN hosting? Here's how you can set up your OWN one.

Results 1 to 13 of 13
  1. #1
    Account Upgraded | Title Enabled! AuroX is offline
    MemberRank
    Sep 2008 Join Date
    1,431Posts

    [TUT] Don't want to buy a Trac/SVN hosting? Here's how you can set up your OWN one.

    Self Trac/SVN Hosting
    Before I move on, I would like to say that this is my first guide/tutorial on Ragezone. Any comments/criticisms are highly welcomed. It'd been a fuss for me since most of the Prvate Trac/SVN Hosting out there are paid ones. Most of them only provide free private SVN Hosting itself. So, basically how do you create your own one?

    Overview
    What is Trac and SVN?
    Trac is an open source, web-based project management and bug-tracking tool. Apache Subversion (formerly called Subversion , command name svn) is a revision control system founded in 2000.

    What can you do with this?
    Basically, you can either install this on your own computer, where only you can use, or on a dedicated/VPS Server.

    Here are some scenarios where this could be done after researching on it:
    • Manually installing Apache/Wamp and integrate SVN and Trac with it
    • Using an easy tool: VisualSVN


    In this tutorial, I will choose the second method, by using the VisualSVN as it is much more easier to be used.

    You will need to download the following:


    Steps:
    Upon launching the installer, this is what you will see:


    Select "VisualSVN Server and Management Console"

    * The "Management Console Only" is used to monitor the server which is hosted on another computer.
    For example, you installed "VisualSVN Server and Management Console" on VPS(A). You would want some staffs/friends to help you to manage your SVN Server. What you can do is ask them to install the "Management Console" on their computer so that they can connect to your SVN Server.

    Next, this is what you will see:


    Location: Self-explained
    Repositories: This is where your SVN Revision database will be stored. I suggest you to leave this as default, so that you can install the Trac easily.
    Server Port: Untick the "Use secure connection (https://)". Only tick that if you know what you're doing. Basically, you need to get a SSL certificate if you want to use it. Its up to you. As for the port, I suggest you to change it to a port which you would like, make sure that it does not clash with your MapleStory ports, MySQL Ports(3306) and Apache Port(8080)
    Authentication: Select "Use Subversion Authentication" - You can create multiple users with this

    After you've installed, open up the VisualSVN Server Console.

    Here, you will need to create your User account first. Right click on Users, select "Create Users...", enter the required credentials. If you want to create more, you can do so.

    Next, you will need to create your repository. Right click on Repositories, select "Create new repository".
    Eg: Let say I create a new repository called "MapleStory".

    Once you've created one, right click on your "MapleStory" repository, and select "Properties...". Here, you can add or remove the user permissions. Select your user and grant the access. If you're making it private, please make sure to set the "Everyone" Group to "No-Access" OR remove it from the list.

    Now, your SVN is already set up.

    Let say my port is 9090 and my repository name is "MapleStory". Then you can view your SVN here: http://localhost:9090/svn/

    You're not done yet! Next, you will need to set up your TRAC Server.

    Once you've downloaded "VisualSVN-Server-2.5.2.27089-Trac-0.12.2.zip", unzip it to your VisualSVN Server folder where you installed the program. (Shown below)


    Then, click HERE and follow steps 7 to 16.

    Some guidelines:
    • %VISUALSVN_SERVER%- Your installation path (Default: C://Program Files/VisualSVN Server/)
    • How to execute the commands? Open up Command Prompt (Start->Run->cmd). Then path the current directory to your trac path. (Eg: cd C:\\Program Files\\VisualSVN Server\\trac) ->
      Shown here


      Then, for all the steps, do not type "%VISUALSVN_SERVER%trac\trac-admin.bat". Just path it to the trac directory and type "trac-admin.bat" (Without the quotes)

      For eg, step 9, after you've pathed, just do
      Code:
      trac-admin.bat C:\Trac\MapleStory initenv
      Then, press enter for all of them, Leave the db settings as default.

      Step 10
      Code:
      trac-admin.bat c:\Trac\MapleStory repository add MapleStory C:\Repositories\MapleStory svn
      Step 11 (Right Click project->Properties->Add to post-commit hook)
      Code:
      @"%VISUALSVN_SERVER%trac\trac-admin.bat" C:\Trac\MyProject changeset added "%1" "%2"
      Step 12 (Right Click project->Properties->Add to post-revision property change)
      Code:
      @"%VISUALSVN_SERVER%trac\trac-admin.bat" C:\Trac\MyProject changeset modified "%1" "%2"
      Remember to change the MyProject for step 11 and 12.
    • As for step 13, go to Control Panel -> System -> Advanced System Settings -> Environmental Variables.

      Press New-> Type in PYTHONHOME for the Variable name and C:\Program Files\VisualSVN Server\trac\python for the Variable Value.

      Do not add a \ behind the python folder or it will end you up to an Internal System Error.

    • Then, for step 14, open up conf\httpd-custom.conf and paste this there. Remember to save.
      Code:
      LoadModule python_module "trac/python/mod_python_so.pyd"
      LoadModule authz_user_module bin/mod_authz_user.so
      <Location /trac>
        SetHandler mod_python
        PythonInterpreter main_interpreter
        PythonHandler trac.web.modpython_frontend
        PythonOption TracEnvParentDir C:\Trac
        PythonOption TracUriRoot /trac
      
        AuthName "Trac"
        AuthType Basic
        AuthBasicProvider file
        AuthUserFile "C:/Repositories/htpasswd"
      
        Require valid-user
      </Location>


    Your trac is now done. http://localhost:9090/trac/.

    Now, you will need to grant the TRAC_ADMIN privileges.
    Path to the trac folder as shown above and type this
    Code:
    trac-admin.bat C:\Trac\MapleStory permission add admin TRAC_ADMIN
    Change the "admin" to your User that you've set up through VisualSVN Server Console.

    NOTE: Username and Passwords are case-sensitive.

    If you're hosting this on a dedicated server/VPS server, you can just do this
    Code:
    http://IP:PORT/svn
    or if you've a domain,
    Code:
    http://www.mydomain.com:PORT/svn
    What if I have several IPs on a server?



    Change the Server Binding settings and add in the IP you want the SVN/Trac Server to Bind to.

    Here's the end result:http://i43.tinypic.com/29na5ht.jpg

    Have fun!
    -AuroX
    Last edited by AuroX; 07-02-12 at 03:14 PM.


  2. #2
    Ass > Tits Lapje is offline
    MemberRank
    Feb 2009 Join Date
    nullLocation
    1,879Posts

    Re: [TUT] Don't want to buy a Trac/SVN hosting? Here's how you can set up your OWN on

    Ouch I feel bad nobody has posted a reply yet lol.

    Very useful release. Definitely worth it since it really not worth it using public SVN's when you're trying to do something which shouldn't be public and still need that SVN.

    Thanks =].

  3. #3
    Omega sunnyboy is offline
    MemberRank
    Mar 2010 Join Date
    6,109Posts

    Re: [TUT] Don't want to buy a Trac/SVN hosting? Here's how you can set up your OWN on

    Thanked post!!

    Thanks a lot. I didn't want to pay. xD

  4. #4
    Apprentice Ziplock is offline
    MemberRank
    Jan 2012 Join Date
    LuxuryMsLocation
    24Posts

    Re: [TUT] Don't want to buy a Trac/SVN hosting? Here's how you can set up your OWN on

    IM gonna use di!!! Our server needs it

  5. #5
    Account Upgraded | Title Enabled! oxysoft is offline
    MemberRank
    Nov 2008 Join Date
    Canada, QCLocation
    1,400Posts

    Re: [TUT] Don't want to buy a Trac/SVN hosting? Here's how you can set up your OWN on

    Good tutorial Jay. You need to make more :P

  6. #6
    very green greenelfx is offline
    MemberRank
    Jul 2011 Join Date
    1,323Posts

    Re: [TUT] Don't want to buy a Trac/SVN hosting? Here's how you can set up your OWN on

    Assembla has free private svn spaces

  7. #7
    Account Upgraded | Title Enabled! AuroX is offline
    MemberRank
    Sep 2008 Join Date
    1,431Posts

    Re: [TUT] Don't want to buy a Trac/SVN hosting? Here's how you can set up your OWN on

    Quote Originally Posted by greenelfx View Post
    Assembla has free private svn spaces
    But there's no Trac. They removed Trac already and only offers free private subversion now.

  8. #8
    Account Upgraded | Title Enabled! StripedCow is offline
    MemberRank
    Jun 2011 Join Date
    813Posts

    Re: [TUT] Don't want to buy a Trac/SVN hosting? Here's how you can set up your OWN on

    Unfuddle.com lol, free private subversion with trac.

  9. #9
    Account Upgraded | Title Enabled! AuroX is offline
    MemberRank
    Sep 2008 Join Date
    1,431Posts

    Re: [TUT] Don't want to buy a Trac/SVN hosting? Here's how you can set up your OWN on

    Quote Originally Posted by StripedCow View Post
    Unfuddle.com lol, free private subversion with trac.
    Space limit, project limit, users limit. Oh well..Its still up to you. I still prefer on localhost though

  10. #10
    Account Upgraded | Title Enabled! Control is offline
    MemberRank
    Aug 2010 Join Date
    /b/Location
    323Posts

    Re: [TUT] Don't want to buy a Trac/SVN hosting? Here's how you can set up your OWN on

    xp-dev offers private trac & svn hosting for free lol.

  11. #11
    Everything is possible~ Diamondo25 is offline
    MemberRank
    Jan 2008 Join Date
    The NetherlandsLocation
    1,116Posts

    Re: [TUT] Don't want to buy a Trac/SVN hosting? Here's how you can set up your OWN on

    Quote Originally Posted by Control View Post
    xp-dev offers private trac & svn hosting for free lol.
    True, but it has a limited amount of private hosts :(

  12. #12
    凸(ಠ益ಠ)凸 Omnija is offline
    MemberRank
    Jun 2008 Join Date
    QuebecLocation
    2,233Posts

    Re: [TUT] Don't want to buy a Trac/SVN hosting? Here's how you can set up your OWN on

    this should be released as an over all release, good to know.

  13. #13
    Novice adrianhakimi is offline
    MemberRank
    Nov 2011 Join Date
    2Posts

    Re: [TUT] Don't want to buy a Trac/SVN hosting? Here's how you can set up your OWN on

    trac not found!! any clue ?

    ok fixed!

    restart the visualsvn server! ^^ thanks

    how do i put it in my website ?

    what should i do ??



Advertisement