1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

htpasswd and svn

Discussion in 'General Discussion' started by TravInSF, Feb 10, 2011.

  1. TravInSF

    TravInSF New Member

    Joined:
    Nov 23, 2010
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Hello, trying to install SVN on my server, and I'm having a problem with htpasswd

    I'm following these instructions: /http://sven.webiny.com/subversion-on-cpanel-3-with-centos-55-and-easyapache-32/

    and I'm stopped at "Now add subversion user accounts, and their passwords:"

    When I run the command as written, i get:

    even though I can see htpasswd in /usr/local/apache/bin/htpasswd

    I noted elsewhere that I should be using htpasswd2, but a find of that yields nothing.

    So, what do I do? is there something that needs to be reinstalled?

    Thanks in advance
     
  2. cPanelTristan

    cPanelTristan Active Member
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,621
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    Hello TravInSF,

    Are you logged in as the root user rather than a wheel group or sudo user for issuing these commands?

    Thanks.
     
  3. TravInSF

    TravInSF New Member

    Joined:
    Nov 23, 2010
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    SVN install on cPanel: can't seem to 'see' htpasswd, if that's even what I need

    I'm trying to install SVN on my server, and I've run into a snag. I've searched to the extent that I know what to search for, and have no solution yet.

    I've reached this line:
    which returns:
    Note that when I navigate to /usr/local/apache/bin, I can see htpasswd; I have also chmod'ed it to 755, perhaps ill-advisedly and needlessly, but in desperation.

    My Apache version is 2.2.17, so my impression from reading is that i need to use htpasswd2; of course, I can find this nowhere on my system, either by looking around myself, or by running find, whereis, or locate. In fact, there isn't even an apache2 directory.

    Apologies if this obvious and annoying, but I've truly searched the terms that seemed appropriate, and have nothing so far.

    Any thoughts on what I might try next?
     
  4. sirdopes

    sirdopes Member

    Joined:
    Sep 25, 2007
    Messages:
    141
    Likes Received:
    0
    Trophy Points:
    16
    Re: SVN install on cPanel: can't seem to 'see' htpasswd, if that's even what I need

    if you are in the /usr/local/apache/bin folder, run the command using ./

    ./htpasswd -cm /etc/svn-auth-conf yourusername

    You can also specify the full path to the file

    /usr/local/apache/bin/htpasswd -cm /etc/svn-auth-conf yourusername
     
  5. TravInSF

    TravInSF New Member

    Joined:
    Nov 23, 2010
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Thank you both. @Tristan, yes root, but regardless; @sirdopes, the ./ addition to the path worked. Any idea why, just in case it'll save me additional grief later? Many thanks again.

    trav

    edit: sorry for the double-post; I force-refreshed and everything, and did not see my original post, so I reposted thinking it had been modded out due to the link or something.
     
    #5 TravInSF, Feb 10, 2011
    Last edited: Feb 10, 2011
  6. Louisvdw

    Louisvdw New Member

    Joined:
    Jun 23, 2011
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    It's not in the normal place because it's a cPanel installed Apache.

    Change you command to /usr/local/apache/bin/htpasswd and it will work.
     

Share This Page