create a .htaccess file with the following:
AuthUserFile /path/to/.htpasswd AuthType Basic AuthName "some descriptive text about the site" Require valid-user
create passwords for the users
htpasswd /path/to/.htpasswd username --or, to create a new file-- htpasswd -c /path/to/.htpasswd username