Report this

What is the reason for this report?

Wordpress htaccess authentication

Posted on October 22, 2014

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



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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

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?

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.