Question

Why does Wordpress (1 click install with DO template on ubuntu) keep asking for authentication?

  • Posted March 14, 2014

I’m new to this but when i log onto my wp-admin dash board I get a pop up asking for me to login to my droplet via SSH for login details. Is there anyway to stop that from popping up?

Subscribe
Share

Submit an 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.

To remove the additional password prompt, you’ll need to log into your VPS instance through SSH as we demonstrated above. <br>Once logged in, you need to update the main Apache configuration file. Open it as root with your text editor: <br> <br>nano /etc/apache2/apache2.conf <br>Inside, you need to find the section that deals with the “/wp-admin/” section. It should look like this: <br> <br><DirectoryMatch ^./wp-admin/> <br> AuthType Basic <br> AuthName “Please login to your droplet via SSH for login details.” <br> AuthUserFile /etc/apache2/.htpasswd <br> Require valid-user <br></DirectoryMatch> <br> <br>This entire section can be commented out by placing the “#” character before each line, like this: <br> <br>#<DirectoryMatch ^./wp-admin/> <br># AuthType Basic <br># AuthName “Please login to your droplet via SSH for login details.” <br># AuthUserFile /etc/apache2/.htpasswd <br># Require valid-user <br>#</DirectoryMatch> <br>Once this is complete, you can restart Apache for your new changes to take affect. <br> <br>service apache2 restart <br> <br>This should remove the additional password prompt from the administrative areas, which is usually okay since WordPress itself can handle authentication.

@zgaymalov <br> <br> <br>Thank you help alot.

Thank you very much, it worked. Here is more detailed steps: <br> <br>1. Locate a apache2.conf file by navigating to /etc/apache2 <br>2. Open file in text editor, just in case make a copy of original somewere if something will go wrong. <br>3. Locate: <br> <DirectoryMatch ^./wp-admin/> <br> AuthType Basic <br> AuthName “Please login to your droplet via SSH for login details.” <br> AuthUserFile /etc/apache2/.htpasswd <br> Require valid-user <br> </DirectoryMatch> <br>4.Delete: <br><DirectoryMatch ^./wp-admin/> <br> AuthType Basic <br> AuthName “Please login to your droplet via SSH for login details.” <br> AuthUserFile /etc/apache2/.htpasswd <br> Require valid-user <br></DirectoryMatch> <br>5. Save and update. <br> <br>I hope this will help.

Try this: <br>sudoedit /etc/apache2/apache2.conf

<DirectoryMatch ^.*/wp-admin/> AuthType Basic AuthName “Please login to your droplet via SSH for login details.” AuthUserFile /etc/apache2/.htpasswd Require valid-user </DirectoryMatch>

Heres the fix! <br> <br>Navigate to /etc/apache2/apache2.conf <br> <br>At the bottom, remove this from the config. and restart apache by using the command: /etc/init.d/apache2 reload <br> <br> <br> <br> <br> <br> <br><DirectoryMatch ^.*/wp-admin/> AuthType Basic AuthName “Please login to your droplet via SSH for login details.” AuthUserFile /etc/apache2/.htpasswd Require valid-user </DirectoryMatch>

Same here!