Results 1 to 6 of 6

Thread: htpasswd and svn

  1. #1
    Registered Member
    Join Date
    Nov 2010
    Posts
    5

    Default htpasswd and svn

    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:

    bash: htpasswd: command not found
    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. #2
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,609
    cPanel/WHM Access Level

    Root Administrator

    Default Re: htpasswd and svn

    Hello TravInSF,

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

    Thanks.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  3. #3
    Registered Member
    Join Date
    Nov 2010
    Posts
    5

    Default 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:
    Now add subversion user accounts, and their passwords:
    root@div [~]# htpasswd -cm /etc/svn-auth-conf yourusername
    which returns:
    Code:
    bash: htpasswd: command not found
    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. #4
    Registered Member cPanel Partner NOC Badge
    Join Date
    Sep 2007
    Posts
    141

    Default 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. #5
    Registered Member
    Join Date
    Nov 2010
    Posts
    5

    Default Re: htpasswd and svn

    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.
    Last edited by TravInSF; 02-10-2011 at 07:19 PM. Reason: Mea Culpa

  6. #6
    Registered Member
    Join Date
    Jun 2011
    Posts
    13

    Default Re: htpasswd and svn

    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.

Similar Threads

  1. htpasswd Encryption
    By grayloon in forum Security
    Replies: 3
    Last Post: 08-12-2014, 09:33 AM
  2. Require help with htPasswd
    By ameliabrooke in forum Security
    Replies: 1
    Last Post: 01-18-2013, 03:40 AM
  3. htpasswd encoded password is different
    By dfoxx in forum Security
    Replies: 0
    Last Post: 04-11-2011, 01:25 PM
  4. .htpasswd directory
    By jivkoa in forum General Discussion
    Replies: 0
    Last Post: 05-12-2008, 05:06 PM
  5. .htaccess and .htpasswd
    By TacticalNuke in forum General Discussion
    Replies: 0
    Last Post: 06-13-2006, 03:10 PM
bargain