Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm following this guide to install and configure a SVN Server in my development server. I've some previously projects created under /var/www/html and want those projects under SVN meaning I can use Tortoise or any other client to have this code with SCM. Which are the commands to start a new repo at /var/www/html/project1 for example? This one: svnadmin create testrepo? How I must configure Apache DAV SVN to allow HTTP access after get the repo configured and working?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Which are the commands to start a new repo at /var/www/html/project1 for example? This one: svnadmin create testrepo?

# cd /var/www/html
# svnadmin create testrepo

I've some previously projects created under /var/www/html and want those projects under SVN

# cd /var/www/html
# svn import ./foo -m "importing the foo project" file:///var/www/html/testrepo

How I must configure Apache DAV SVN to allow HTTP access after get the repo configured and working?

<Location /svn>
   DAV svn
   SVNPath /var/www/html/testrepo
   AuthType Basic
   AuthName "Subversion repositories"
   AuthUserFile /etc/svn-auth-users
   Require valid-user
</Location>
share|improve this answer
    
Thx for your reply but still getting doubts. First I've a PHP project located at /var/www/html/project1 then I initialize the SVN repo at /var/www/html/svn running the command cd /var/www/htmlsvn && svnadmin create cmvrepo which are the next steps? svn import ./foo - m "importing the foo project" file:///var/www/html/project1? (I assume this is any name which are the right word to write there) –  ReynierPM Sep 10 '12 at 20:17
    
svn import /var/www/html/project1 file:///var/www/html/svn/cmvrepo -m "importing the project1". –  quanta Sep 10 '12 at 20:25
    
Thx it's working perfectly!! –  ReynierPM Sep 10 '12 at 20:33

Your Answer

 
discard

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.