67

I'm running 13.10. Clean install. Ran: sudo apt-get install apache2

I would expect that I would have htpasswd in the /usr/sbin directory along with the apache2 executable. I don't.

I can provide any info necessary.

ImaginaryRobots
  • 9,058
  • 4
  • 34
  • 38
user217019
  • 771
  • 1
  • 5
  • 4

2 Answers2

139

Perhaps you have apache2-utils not installed. Try searching apache-utils in software manager or with command line:

sudo apt-get install apache2-utils
Evenbit GmbH
  • 4,598
  • 4
  • 23
  • 33
10
username@host:~$ htpasswd
The program 'htpasswd' can be found in the following packages:
 * apache2-utils
 * mini-httpd
Try: sudo apt-get install <selected package>

The error message is obvious. sudo apt-get install apache2-utils should solve your problem with missing htpasswd binary.

Geppettvs D'Constanzo
  • 19,364
  • 7
  • 51
  • 106
Andrejs Cainikovs
  • 5,799
  • 1
  • 32
  • 41