By kirandev
Hey, I had followed all steps from below article to secure (auth) phpmyadmin, but it now showing auth popup. https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-ubuntu-16-04
Same steps working for my beta domain on separate droplet, while for live its not working, live is on separate high config droplet. I also had compare beta and live files for auth functionality but all are identical, still live phpmyadmin is not securing by auth (while beta domain is secure by auth)
Below are my config files and code,
/etc/apache2/conf-available/phpmyadmin.conf
<Directory /usr/share/phpmyadmin>
Options FollowSymLinks
DirectoryIndex index.php
AllowOverride All
</Directory>
/usr/share/phpmyadmin/.htaccess
AuthType Basic
AuthName "Restricted Files"
AuthUserFile /etc/phpmyadmin/.htpasswd
Require valid-user
/etc/phpmyadmin/.htpasswd
MyPass:$apr3435/iI$33%DSMK7K//cdfff5ncy.YZh1
I also had restart apache (also restarted droplet), but its not working.
Do anyone had idea what could be the wrong/misconfigured?
Thanks.
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!
This question was answered by @kirandev:
Just got the answer, I had copy phpmyadmin.conf cp conf-available/phpmyadmin.conf conf-enabled/phpmyadmin.conf (and ofcourse restart apache)
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.