Question

Wordpress htaccess authentication

Posted October 22, 2014 5.1k views

Hello,

Does anyone know how or where to find the username and password that Digital Ocean uses as security for a new Wordpress install?

The following directions say that the instructions to find the password are in the .htaccess file and also the /root/WORDPRESS file. I use Filezilla and I am able to locate both files but there is nothing in the htaccess and the root Wordpress file will not open. Am I missing something?

https://www.digitalocean.com/community/tutorials/one-click-install-wordpress-on-ubuntu-14-04-with-digitalocean

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
3 answers

SSH into your droplet and you should see /root/WORDPRESS’s contents: How To Log Into Your Droplet with PuTTY (for windows users) | DigitalOcean.

and the root Wordpress file will not open

Can you post the exact error that you’re getting? What user are you connected as?

After you connect to your FTP, go to SERVER and select FORCE SHOWING HIDDEN FILES. This should allow you to see the .htaccess file.

Hello there,

If you’ve enabled password authentication using htpasswd and you want to disable it, just ssh to the server and you can open the .htaccess file and remove the Auth lines for the protected directory.

Usually, when you password protect a directory you will have the following lines in the .htaccess file:

AuthName ""
AuthType Basic
AuthUserFile
Require valid-user

Additionally, you can reset the WordPress admin password using the Password reset from the /wp-admin or /wp-login.php page.

Regards,
Alex