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

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 :

[root@server ~]# 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 :

[root@server ~]# htpasswd ehowstuff

Leave a Reply

Your email address will not be published. Required fields are marked *