generate htaccess password (htpasswd) from the command line

#If you don’t current have an .htpasswd, use the “-c” option to create the file # with the first user. It will prompt you for a password and encrypt it for you. htpasswd -c /var/www/ user1 # If you already have the .htpasswd file and would like to append a new user, # repeat the command with the “-c” htpasswd /var/www/ user2

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.