By gonevps
Fresh Droplet : UBUNTU 14.04.x64 LAMP 14.04
I’ve followed the instuctions provided on : https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-ubuntu-14-04
But somehow it doesn’t work. If i go to http://MY_IP_ADDRESSS/phpmyadmin/ no window prompted to input username and password.
I’ve check the phpmyadmin.conf, .htaccess and .htpasswd files and all of those files seems good.
phpmyadmin.conf
<Directory /usr/share/phpmyadmin>
Options FollowSymLinks
DirectoryIndex index.php
AllowOverride All
.htaccess
AuthType Basic
AuthName "Restricted Files"
AuthUserFile /etc/phpmyadmin/.htpasswd
Require valid-user
.htpasswd
username:$xxx1$xxx...xxx...xxx...xxx/XXXXX
What is wrong ?
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!
Never mind finally got this thing works.
We need to add the configuration to our web/domain configuration file ( domain.tld.conf ) in this case the domain.tld is my primary domain (i’ve use mutlple domain on 1 droplet)
Find and edit file via SSH or FTP: /etc/apache2/sites-available/domain.tld.conf
Then add following configuration to the file :
<Directory /usr/share/phpmyadmin>
Options FollowSymLinks
DirectoryIndex index.php
AllowOverride All
</Directory>
Save , restart apache
sudo service apache2 restart
Done! Hope this can help anyone who have the same problem.
Note : If your main domain is facebugs.com and you’ve set virtual host for it then your web/domain configuration file is /etc/apache2/sites-available/facebugs.com.conf
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.