How to Creates the /etc/httpd/passwords File and Configures a Password for Apache User?

Share this Article :

Questions :
What command to creates the /etc/httpd/passwords file and configures a password for Apache Httpd user ?

Answers :
The command that creates the /etc/httpd/passwords file is :

[[email protected] ~]# htpasswd -c /etc/httpd/passwords ehowstuff

Assume that the username is ehowstuff.

If /etc/httpd/passwords already exists, the command to configures a password for Apache user ehowstuff is :

[[email protected] ~]# htpasswd ehowstuff

Leave a Reply