htaccess

Something is wrong. I do everything right make the .htaccess file and stuff, but when I try the htpasswd command it says command not found. I use Putty SSH client and I think server is running RedHat 7.1 with Apache some version.

HELP!!!

If you get a message like, htpasswd: command not found enter the command type htpasswd. If that doesn't do the trick, try which httpd. If htpasswd is not in your path, you will have to add that directory to your path or enter the command as /what/ever/dir/htpasswd -c user_name . If you allready add .htpasswd , check whether its in correct directory.

Note: This error appear when it really cant find the file .htpasswd