Hello, hope everyone’s OK… So I followed this article: https://www.digitalocean.com/community/articles/how-to-install-and-secure-phpmyadmin-on-ubuntu-12-04 And when i got to set up the htpasswd part, didn’t know where to store it, or what are the best practices applied. So, I tried a path kept getting internal server errors, till i stored it in var/www and it worked. For some reason i don’t feel like it should be kept there(i am new to this). Any help is appreciated, thanks…
Running: Ubuntu.
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!
You shouldn’t store it in /var/www because anyone will be able to download it since apache is serving /var/www’s contents. You can create a directory in /etc/apache2 called <code>htpasswd</code> or whatever you like and store it in it e.g. <code>/etc/apache2/htpasswd/phpmyadmin</code>.
<b>“For some reason i don’t feel like it should be kept there…”</b> <br> <br>The article also recommends that you should <b>not</b> store it there.<blockquote>… place the file in a directory of your choice as long as it is not accessible from a browser.</blockquote>
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.