How to setup SVN using HTTPS on FC5
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 6 of 6
  1. #1
    abhijitnt Guest

    How to setup SVN using HTTPS on FC5

    Hi Guys,
    I got my latest SVN 1.3.2 working on FC5 with Apache 2.2.0 over SSL,
    so decided to just share the same with all.
    Here we go,

    1) To install SVN do
    yum install subversion.

    2) To create a SSL certificate for Apache do -
    Step one - create the key and request:
    openssl req -new > new.cert.csr

    Step two - remove the passphrase from the key (optional):
    openssl rsa -in privkey.pem -out new.cert.key

    Step three - convert request into signed cert:
    openssl x509 -in new.cert.csr -out new.cert.cert -req -signkey new.cert.key -days 1024
    place the keys to following locations & edit the /etc/httpd/conf.d/ssl.conf as follows -

    SSLCertificateFile /etc/pki/tls/certs/new.cert.cert
    SSLCertificateKeyFile /etc/pki/tls/private/new.cert.key

    Test the certificate.

    3) create /home/subversion/repository & /home/subversion/permissions

    chown -R apache:apache /home/subversion/repository
    svnadmin create /home/subversion/repository
    svn import /tmp/project1 file:///home/subversion/repository/project1 -m "initial import"
    svn checkout file:///home/subversion/repository/project1 project1

    4) Edit httpd.conf as follows

    LoadModule dav_svn_module modules/mod_dav_svn.so
    LoadModule dav_module modules/mod_dav.so
    LoadModule authz_svn_module modules/mod_authz_svn.so

    <Location /svn>
    DAV svn
    SVNPath /home/subversion/repository/
    # our access control policy
    AuthzSVNAccessFile /home/subversion/permissions/svnauthorz.conf
    #how to authenticate the users
    AuthType Basic
    AuthName "Subversion Repository"
    AuthUserFile /var/www/.htpasswd
    # only authenticated users access the SVN
    Require valid-user
    SSLRequireSSL
    </Location>

    use following command to create users for authentication
    htpasswd /var/www/.htpasswd john
    & put following style entry in svnauthorz.conf
    [/]
    john = rw
    liza = r


    thats it, restart the httpd service & your SVN is ready to use for developers.

    Regards
    Abhijit

  2. #2
    boftx Guest
    I was under the impression that SVN would not run with Apache 2.2, did you have any problems related to that?

    Jim

  3. #3
    abhijitnt Guest
    No Man,
    its running absolutely fine with apache 2.2
    can you tell me the exact problem you are getting.

  4. #4
    boftx Guest
    I just did a bit more research and it appears that I missed the fact that mod_dav_svn is now available for Apache 2.2. This was not the case just 2 or 3 weeks ago when I was last installing SVN. It might also be that what I saw was that mod_dav_svn was/is not available for Windows Apache 2.2. (Before you all go "EWWWWWWW" keep in mind that I have no choice on some of the platforms I must work with ).

    Jim


    Thanks for the response!

  5. #5
    Join Date
    Jan 2006
    Location
    Utah, USA
    Posts
    59
    Hi, I'm having trouble finding mod_dav_svn to install with Apache 2.2.x. I can not find mod_dav_svn.so anywhere on my system. So, after searching on google and reading forums, this is the closest I've come to finding what I need. This is the last thing that I did:

    [root@localhost /]# yum install mod_dav_svn
    Loading "installonlyn" plugin
    Setting up Install Process
    Setting up repositories
    Reading repository metadata in from local files
    Parsing package install arguments
    Resolving Dependencies
    --> Populating transaction set with selected packages. Please wait.
    ---> Downloading header for mod_dav_svn to pack into transaction set.
    mod_dav_svn-1.4.3-2.fc6.i 100% |=========================| 13 kB 00:00
    ---> Package mod_dav_svn.i386 0:1.4.3-2.fc6 set to be updated
    --> Running transaction check
    Dependencies Resolved
    ================================================== ===========================
    Package Arch Version Repository Size
    ================================================== ===========================
    Installing:
    mod_dav_svn i386 1.4.3-2.fc6 updates 70 k

    Transaction Summary
    ================================================== ===========================
    Install 1 Package(s)
    Update 0 Package(s)
    Remove 0 Package(s)

    Total download size: 70 k
    Is this ok [y/N]: y
    Downloading Packages:
    (1/1): mod_dav_svn-1.4.3- 100% |=========================| 70 kB 00:00
    Running Transaction Test
    Finished Transaction Test
    Transaction Test Succeeded
    Running Transaction
    Installing: mod_dav_svn ######################### [1/1]

    Installed: mod_dav_svn.i386 0:1.4.3-2.fc6
    Complete!
    [root@localhost /]# locate mod_dav_svn
    [root@localhost /]#
    [root@localhost /]# svn --version
    svn, version 1.4.3 (r23084)
    compiled Mar 23 2007, 09:29:55

    [root@localhost /]# locate mod_dav
    ~/servers/httpd-2.2.6/modules/arch/netware/mod_dav.def
    ~/servers/httpd-2.2.6/modules/dav/fs/mod_dav_fs.c
    ~/servers/httpd-2.2.6/modules/dav/fs/mod_dav_fs.dsp
    ~/servers/httpd-2.2.6/modules/dav/lock/mod_dav_lock.c
    ~/servers/httpd-2.2.6/modules/dav/lock/mod_dav_lock.dsp
    ~/servers/httpd-2.2.6/modules/dav/main/mod_dav.c
    ~/servers/httpd-2.2.6/modules/dav/main/mod_dav.dsp
    ~/servers/httpd-2.2.6/modules/dav/main/mod_dav.h
    /usr/lib/httpd/modules/mod_dav.so
    /usr/lib/httpd/modules/mod_dav_fs.so
    [root@localhost /]#

    I don't know what to do from here. Any help is appreciated.

    Thanks,
    Axiopisty

  6. #6
    Join Date
    Oct 2005
    Posts
    219
    Hi axiopisty,
    The locate command did not use the *live* database of filesystem, you need to run the command updatedb as root to update the database and run the locate again.
    Btw, the mod_dav_svn.so should be in the /etc/httpd/modules/ directory after you install it from the repo.
    Tinh.
    Linux User number : 451678
    Desktop:
    AMD X2 3800+, ASUS M2NPV-VM, GeForce 6150 128MB (onboard), 2GB RAM Corsairs 667, ASUS VW192T LCD 19" Widescreen.
    Ubuntu 8.04 (Hardy Heron) x86
    ------------------------
    Laptop:
    HP Pavilion DV 5000
    Fedora 10 (Cambridge) x86
    Linux Machine Number: 359564

Similar Threads

  1. Fc6 Https
    By drewsmith in forum Servers & Networking
    Replies: 1
    Last Post: 21st February 2007, 10:51 AM
  2. https in FC5
    By craigtran in forum Servers & Networking
    Replies: 3
    Last Post: 3rd December 2006, 01:17 PM
  3. SSL / https - How to?
    By simonsez in forum Servers & Networking
    Replies: 2
    Last Post: 5th August 2005, 08:36 PM
  4. ssh-over-https...
    By ndv in forum Security and Privacy
    Replies: 2
    Last Post: 12th March 2005, 12:25 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •