Today, the mediatemple (dv) 3.5 was released. To my pleasure, its php is compiled with the tokenizer module, which is required for the software I’m deploying, so I’ve decided to give the (dv) another try.

The developer tools now include svn! You don’t need to follow these instructions to install subversion – just create a support request with MediaTemple to install the developer tools. If you need yum, the command below should add it successfully.
Mysteriously, neither the default packages nor the “developer’s tools” include subversion, and how could we live without subversion? When I searched for handy instructions on how to go about installing it, I found only links to my previous post. This post serves as an update for the (dv) 3.5.

The 3.5 edition is running on CentOS 5, so we need the rpm for that version:

$ rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/yum-3.0.5-1.el5.centos.5.noarch.rpm

[the above command is updated from yuri's comment that the dependencies are included in a stock (dv). thanks! yuri also says that subversion is now included in the developer tools. i haven't yet confirmed it, but it's wonderful if true! it's true, and wonderful.]

Check if it’s installed:
$ rpm -q yum

With yum installed successfully, we can use it to install Subversion.
$ yum install subversion

That should do it.

9 Responses to “Installing Subversion on a MediaTemple DV 3.5 Virtual Server”

  1. (mt) Yuri Says:

    Thanx for the suggestion, Subversion is way better than sliced bread, how could we live without it indeed!!!

    Subversion is part of default (dv) Developer tools from now on.

    P.S. You only to install yum rpm on (dv) 3.5, all other prerequisites are part of (dv) Developer tools: “rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/yum-3.0.5-1.el5.centos.5.noarch.rpm

    P.P.S. Share your stories on http://forums.mediatemple.net :)

  2. hello, hellm » Blog Archive » Installing Subversion on a MediaTemple DV 3.0 Virtual Server Says:

    [...] [Updated for the dv 3.5 here] [...]

  3. Michael Hellein Says:

    That’s very exciting (to have Subversion included in the developer tools). Thanks for the update!

  4. Marc Says:

    Thanks for the post. (dv) 3.5 is much improved.

  5. lifegrasp Says:

    version dv 3.0

    new links

    rpm -ivh –nodeps http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/libxml2-python-2.6.16-10.i386.rpm http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/python-elementtree-1.2.6-5.el4.centos.i386.rpm http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/python-sqlite-1.1.7-1.2.1.i386.rpm http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/rpm-python-4.3.3-23_nonptl.i386.rpm http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/python-urlgrabber-2.9.8-2.noarch.rpm

  6. Michael Hellein Says:

    thanks for the updated links – more relevant for this post (http://hellm.com/post/5) as the prerequisites are included in (dv) 3.5.

  7. abelafonte Says:

    All of the CentOS mirrors have been moved. Does anybody have the newest links for the CentOS 5 yum RPM?

  8. Ben Says:

    I was wondering how to set-up Subversion on my mediaTemple (dv) 3.5 dedicated-virtual server. None of the above really worked for me because the yum links were broken and I’m a doofus for the most part. It turns out that this can be done without yum and without much effort. I have PLESK 8.3 and CentOS 5 on my particular machine, which was provisioned in June of 2008, as a point of reference.

    This guide makes two assumptions:

    1.) That the Developer Tools are installed (included as Step 0, for your reference) on your mediaTemple (dv) 3.5 (and possibly later) server and that those tools include Subversion (issue “svn help” on the command line to see which version of Subversion is installed, if any).

    2.) That you set-up the subdomain on which you intend to host Subversion as a top-level domain (this is possible in PLESK, and is, for many, the preferred method). It’s fine if not; just be aware of file paths and nuances related to how your subdomain (or top-level domain) is configured.

    STEP 0: INSTALL DEVELOPER TOOLS THROUGH MEDIATEMPLE CONTROL PANEL.

    Log into your mediaTemple account and click on your (dv) 3.5 domain. Click on “Install Developer Tools” if they haven’t already been installed. This takes a moment and should complete without issue.

    STEP 1 (OPTIONAL): INSTALL yum

    ===== DOWNLOAD =====

    # wget http://mirror.centos.org/centos/5/os/i386/CentOS/yum-metadata-parser-1.1.2-2.el5.i386.rpm
    # wget http://mirror.centos.org/centos/5/os/i386/CentOS/yum-3.2.8-9.el5.centos.1.noarch.rpm
    # wget http://mirror.centos.org/centos/5/os/i386/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm

    ===== INSTALL =====

    # rpm -Uvh python-iniparse-0.2.3-4.el5.noarch.rpm
    # rpm -Uvh yum-metadata-parser-1.1.2-2.el5.i386.rpm
    # rpm -Uvh yum-3.2.8-9.el5.centos.1.noarch.rpm

    Confirm that yum is installed:

    # yum

    STEP 2: INSTALL mod_dav_svn

    ===== DOWNLOAD =====

    # wget http://mirror.centos.org/centos/5/os/i386/CentOS/mod_dav_svn-1.4.2-2.el5.i386.rpm

    ===== INSTALL =====

    # rpm -Uvh mod_dav_svn-1.4.2-2.el5.i386.rpm

    STEP 3: Configure mod_dav_svn

    Have a look at the new subversion.conf file that was created during the mod_dav_svn installation. Apache will, from here forward, automatically include this file at start-up.

    # cd /etc/httpd/conf.d/
    # vim subversion.conf

    No changes are necessary, as we’re going to put the configuration directives elsewhere and leave the samples commented-out here.

    STEP 4: Create an SVN repository

    # svnadmin create /var/www/vhosts/subdomain.yoursite.com/svnrepo

    You should confirm that the svnrepo directory was created and that there are several files inside it. You should also change the permissions of the directory so that the “apache” user has read/write acccess:

    # chown -R root:apache svnrepo
    # chmod -R ug=rwx svnrepo
    # chmod -R o= svnrepo

    STEP 5: MODIFY vhost.conf

    # vim /var/www/vhosts/subdomain.yoursite.com/conf/vhost.conf

    Add the following to the bottom of the file (be SURE not to add a trailing / after /svn in the opening tag or you will get 405 errors like my dumb ass!):

    DAV svn
    SVNPath /var/www/vhosts/subdomain.yoursite.com/svnrepo
    #SVNIndexXSLT “/svnindex.xsl”

    STEP 6: RESTART APACHE.

    Before you restart Apache, you may want to do something like:

    # /usr/local/psa/admin/bin/websrvmng -a

    which forces Plesk to update all Apache-related configuration files. Don’t forget to restart apache!

    DONE! Try accessing the repository at http://subdomain.yoursite.com/svn/

    I haven’t proof-read this tutorial or even tried it (I wrote it as I was going along), so your feedback will probably help others. Share it!

  9. Psychopsia’s Mind · From the deep dark of his mind… Says:

    [...] If you get another errors I suggest reading this post where I found the info: install ffmpeg on media temple dv or similar centos setups and Hello, hellm. [...]