Learning PHP and MySQL

Example 14-2 Creating an Apache password for .htaccess

htpasswd  -c  /usr/local/apache/passwd/passwords  mdavis

The –c option is required only for adding the first entry to a password file. You’ll be prompted to enter the password twice to ensure you don’t have a typo. If the pass- words match, you’ll see the following:

Adding  password  for  user  mdavis

Posted by on 09/25 at 11:52 AM

Next entry: Example 14-3 Comparing the output of md5 to that of sha1

Previous entry: Example 14-1 Using Apache authentication to restrict access to scripts

<< Back to main