1 use htppasswd -c .htpasswd username
enter password:
2 To the directory you want to protect, create .htaccess file
Authorfile /usr/local/apache/bin/.htpasswdauthname phpmyadminauthtype Basic
Require User User Name
3 HTTP in Apache. Add in Conf.
Options Followsymlinksallowoverride Authconfig ORDER ALLOW, DENYALLOW FROM AllRequire Jackyrong
Directory>