Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've installed svn server on my Centos 6.4 machine. I have currenty one repo and one subdomain. I want to link this subdomain to run latest repo revision. I don't know how to do that, because there is no project structure in svn server side directory (project files are compiled into one or something like that).

My subversion.conf is like:

LoadModule dav_svn_module     modules/
LoadModule authz_svn_module   modules/
<Location /r>
   DAV svn
   SVNParentPath /var/www/svn    
      AuthType Basic
      AuthName "My Subversion"
      AuthUserFile /etc/svn-auth-conf
      Require valid-user

And here is my apache domain's virtual host:

<virtualhost *:80>
    DocumentRoot "/var/zpanel/hostdata/zadmin/public_html/"
    php_admin_value open_basedir "/var/zpanel/hostdata/zadmin/public_html/"
    php_admin_value suhosin.executor.func.blacklist "passthru, show_source, shell_exec, system, pcntl_exec, popen, pclose, proc_open, proc_nice, proc_terminate, proc_get_status, proc_close, leak, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, escapeshellcmd, escapeshellarg, exec"
    ErrorLog "/var/zpanel/logs/domains/zadmin/"
    CustomLog "/var/zpanel/logs/domains/zadmin/" combined
    CustomLog "/var/zpanel/logs/domains/zadmin/" common
    <Directory />
    Options FollowSymLinks Indexes
    AllowOverride All
    Order Allow,Deny
    Allow from all
    AddType application/x-httpd-php .php3 .php
    ErrorDocument 510 /_errorpages/510.html
    ErrorDocument 404 /_errorpages/404.html
    ErrorDocument 500 /_errorpages/500.html
    ErrorDocument 403 /_errorpages/403.html
    DirectoryIndex index.html index.htm index.php

Is there any posibility to do that?

share|improve this question
Setup a hook script, so that when an update is pushed to the server it triggers a update in the working copy served served out by Apache. – Zoredache Sep 4 '13 at 1:54
export the project from svn server to your subdomain folder – Mansoorkhan Cherupuzha Sep 8 '13 at 16:28
Look into FSVS ( as an alternative to using "svn export" commands. With FSVS, only the files that have changed will be pushed over the wire instead of every file. And you don't need a ".svn" folder (if you go the "svn update" route). – tgharold Sep 28 '13 at 4:53

Set up a post-commit hook that runs:

svn export file:///var/www/svn/your-repo  /var/zpanel/hostdata/zadmin/public_html/

A sample hook should be available in your hooks directory at /var/www/svn/your-repo/hooks . You can customize it to meet your needs.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.