htpasswd is used to create and update the flat-files used to store usernames and password for basic authentication of HTTP users. On Ubuntu server, you can install htpasswd with command To create a password file and add user, run In
To password protect a folder in Apache, create a password file [root@server12 ~]# htpasswd -c /path/to/.htpasswd admin New password: Re-type new password: Adding password for user admin [root@server12 ~]# This is create a password with user user “admin”. This file