htpasswd, aws, amazon linux 2,

Install htpasswd on Amazon Linux 2

Dec 03, 2022 · 1 min read · Post a comment

Setting up htpasswd to have basic-auth for your site users can be done in a few steps depending on your web server. Here I’m going to cover just the installation process of htpasswd on Amazon Linux 2. Let’s jump on the installation part.

Prerequisites

  • Amazon Linux 2
  • sudo privileges

Install htpasswd on Amazon Linux 2

Step 1. Update the system packages.

sudo yum update

Step 2. Install htpasswd.

sudo yum install httpd-tools

Step 3. Verify the installation.

htpasswd --help

Conclusion

Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.