Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7055683
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:46:41+00:00 2026-05-28T03:46:41+00:00

I successfully installed subversion on my server. When I run the command: which svn

  • 0

I successfully installed subversion on my server. When I run the command:

which svn

I get the response:

/usr/bin/svn

I create a repository inside my root directory which is my httpdocs folder with the following command:

svnadmin create ~/svn

I successfully created the following files and folders and configured them and I see the following files and directories inside the svn directory:

conf  db  format  hooks  locks  README.txt

But I cannot create trunk, branch, and tag directories. In fact I cannot create directories period. Here is the command I have been using:

svn mkdir file:///httpdocs/svn/site

When I make this command the message I get is the following:

svn: Could not use external editor to fetch log message; consider setting the
$SVN_EDITOR environment variable or using the --message (-m) or --file (-F) options
svn: None of the environment variables SVN_EDITOR, VISUAL or EDITOR are set, and no
'editor-cmd' run-time configuration option was found

Also When I type in url:

http://mydomain.com/svn

I get the follwoing message:

404 - Not Found 

What do I need to do to configure my repository, check to see if my repository is actually working. Oh and I did run the following command:

svnserve -d
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T03:46:42+00:00Added an answer on May 28, 2026 at 3:46 am

    I create a repository inside my root directory which is my httpdocs folder with the following command…

    That’s not how you get Subversion to work with Apache httpd if that’s what you’re trying to do. You need the mod_dav and mod_dav_svn modules for Apache. You might have to recompile Apache to get these.

    Once you get mod_dav and mod_dav_svn installed, you need to configure your httpd.conf file (or put a configuration file under your httpd’s conf.d depending how it’s configured on your system) for it to work.

    In the end, it’s not all that difficult. Most Apache installations have mod_dav and mod_dav_svn added in, and you can see if your http.conf file is configured correctly. The on line Subversion manual will have everything you need to get it working.

    svn: Could not use external editor to fetch log message; consider setting the
    $SVN_EDITOR environment variable or using the –message (-m) or –file (-F) options
    svn: None of the environment variables SVN_EDITOR, VISUAL or EDITOR are set, and no
    ‘editor-cmd’ run-time configuration option was found

    Read the message. It says Could not use external editor because you didn’t specify one. Again the Subversion on line manual explains it in detail.

    Basically, when you commit a change in Subversion, you need to create a commit message. This can be done in two ways:

    • You use the -m option like svn commit -m "This is my commit message".
    • You set the variables SVN_EDITOR, VISUAL, or EDITOR to the name of the program you want to use. For example, in Windows, you’d say C:> set EDITOR=notepad.exe. On Unix, you’d say something like $ export EDITOR=vi. Subversion first checks the value of the SVN_EDITOR variable, then VISUAL, then EDITOR. If none of them are set, it gives you the error you saw.

    Why did you get it on the svn mkdir command?

    Because you use the URL form of the command, it will make the directory, then commit the change, thus the need for a commit message. This should work:

    svn mkdir -m"Adding the site directory to my repository" file:///httpdocs/svn/site
    

    Now, you need to move your repository out of your HTTPDOCs directory. That’s a very bad thing to have because it hurts your web server.

    If you don’t want to use the file:// protocol, you can use svnserve. This is a built-in Subversion repository server and uses the svn:// protocol. Observe:

    $ svnadmin create my_repos   #Creates the repository
    $ vi my_repos/conf/svnserve.conf  #See footnote 1 below
    $ vi my_repos/conf/passwd         #See footnote 1 below
    $ svnserve -r my_repos -d
    $ svn mkdir -m "Making basic directory layout svn://localhost/trunk \
    > svn://localhost/tags svn://localhost/branches
    $ export SVN_EDITOR="vi"
    

    Your repository also becomes accessible to all the machines on your network too. Using svnserve is much simpler than Apache httpd, but there are a few issues:

    • You can’t run multiple instances of svnserve since it wants to use port 3690 and it doesn’t like to share. With Apache httpd, you can have multiple repositories.
    • Security setup with svnserve is limited. With Apache, I can use Windows Active directory or LDAP or I can configure it manually.
    • Some web based subversion repository browsers don’t like svnserve.

    By the way, if you haven’t, go through the Subversion on line manual. It’s one of the best manuals I’ve seen for any open source project.


    1 When you setup your repository using svnserve, you need to edit the svnserve.conf file by enabling the line password-db = passed which is about line #20 in the file. Then you have to edit the passed file (located in the same directory) to configure the users and their passwords. Both are very straight forward, but easy to forget, and if you don’t do it, you can’t commit anything into your repository.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've successfully installed Solr 1.4.1, but I can't get Tika 0.4 (which is included
I have just successfully installed the subversion in windows server 2008 i can checkout
Having successfully installed opencv 2.0 with python bindings I'm starting to run into trouble
I have successfully installed SVN on a Windows XP machine and can connect to
I have successfully installed and run mongodb on my macbook pro with the c++
I have successfully installed Shibboleth SP on our server (server 2003 IIS6) and it
I have successfully installed and configured gitosis on an Ubuntu server. We're currently just
I have successfully installed mercurial on media temple grid server. But I can not
I've successfully installed clojure-mode, slime, slime-repl within Emacs. I start a swank server with
I'm running Ubuntu 11.10 server and successfully installed Phusion Passenger. I'm getting the following

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.