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

March 14, 2014 4.5k views
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?
7 Answers
To remove the additional password prompt, you'll need to log into your VPS instance through SSH as we demonstrated above.
Once logged in, you need to update the main Apache configuration file. Open it as root with your text editor:

nano /etc/apache2/apache2.conf
Inside, you need to find the section that deals with the "/wp-admin/" section. It should look like this:


AuthType Basic
AuthName "Please login to your droplet via SSH for login details."
AuthUserFile /etc/apache2/.htpasswd
Require valid-user


This entire section can be commented out by placing the "#" character before each line, like this:

#
# AuthType Basic
# AuthName "Please login to your droplet via SSH for login details."
# AuthUserFile /etc/apache2/.htpasswd
# Require valid-user
#
Once this is complete, you can restart Apache for your new changes to take affect.

service apache2 restart

This should remove the additional password prompt from the administrative areas, which is usually okay since WordPress itself can handle authentication.
Heres the fix!

Navigate to /etc/apache2/apache2.conf

At the bottom, remove this from the config. and restart apache by using the command: /etc/init.d/apache2 reload






AuthType Basic AuthName "Please login to your droplet via SSH for login details." AuthUserFile /etc/apache2/.htpasswd Require valid-user
AuthType Basic AuthName "Please login to your droplet via SSH for login details." AuthUserFile /etc/apache2/.htpasswd Require valid-user
Try this:
sudoedit /etc/apache2/apache2.conf
Thank you very much, it worked. Here is more detailed steps:

1. Locate a apache2.conf file by navigating to /etc/apache2
2. Open file in text editor, just in case make a copy of original somewere if something will go wrong.
3. Locate:

AuthType Basic
AuthName "Please login to your droplet via SSH for login details."
AuthUserFile /etc/apache2/.htpasswd
Require valid-user

4.Delete:

AuthType Basic
AuthName "Please login to your droplet via SSH for login details."
AuthUserFile /etc/apache2/.htpasswd
Require valid-user

5. Save and update.

I hope this will help.
@zgaymalov


Thank you help alot.
Have another answer? Share your knowledge.