Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

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 could also use MySQL Workbench (I have used it for a year +), it can be setup to use a ssh tunnel so you don’t need to expose your server to a phpmyadmin and the need for an ssl cert.
Another option (for OSX users) would be: http://www.sequelpro.com/
You can setup a SSL connection and connect to MySQL using socket or localhost. If it’s your own droplet and only you (and/or some colleagues) have to access MySQL, I’d prefer Sequel Pro.
When you need phpMyAdmin? Please use this tutorial to make the internet a safer place ;)
I followed this tutorial and configured phpmyadmin successfully. Then I followed the following article to add a second domain to my Droplet by creating a virtual host ready for two separate Wordpress installs.
After I configured the server blocks to create a virtual server to host multiple sites on the server. I lost access to phpmyadmin via the url (ie. domain.com/nothingtosee). Now all that it returns is a 404 error.
Is there a quick fix to this?
Hi, how come after I typed sudo apt-get install phpmyadmin the first question it asked was whether I wanted it to be installed in Apache2 or Lighttd? I’m in Nginx(LEMP) and it’s not even an option for an answer. So I reluctantly selected Apache2. Would that be a problem? Should I uninstall it and start over? If it needs to be uninstalled, how to do that properly? Thanks!
Hi, your tutorial was great. I did have a problem. After accessing phpmyadmin (with htaccess password ), the next time I connected I didn’t get prompted for a password. I didn’t save the password in the browser (chrome and firefox) and I didn’t save cookies (cleared on close). Not sure where it is being saved.
I wanted to try a little more security rather than password protecting access to PhpMyadmin.
I wanted to secure it so that I could only access it from either localhost or my local private network 192.168.100.0.
I made the following changes:
Now nobody can access phpmyadmin???
Alias /phpmyadmin /usr/share/phpmyadmin
<Directory /usr/share/phpmyadmin> Options FollowSymLinks DirectoryIndex index.php
<IfModule mod_php5.c>
AddType application/x-httpd-php .php
php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag register_globals Off
php_admin_flag allow_url_fopen Off
php_value include_path .
php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp
php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext/:/usr/share/javascript/
</IfModule>
Require all denied
Allow from 127.0.0.0/255.0.0.0 ::1/128
Allow from localhost
</Directory>
<Directory /usr/share/phpmyadmin/setup> <IfModule mod_authn_file.c> AuthType Basic AuthName “phpMyAdmin Setup” AuthUserFile /etc/phpmyadmin/htpasswd.setup </IfModule> Require valid-user </Directory>
<Directory /usr/share/phpmyadmin/libraries> Order Deny,Allow Deny from All </Directory> <Directory /usr/share/phpmyadmin/setup/lib> Order Deny,Allow Deny from All </Directory>
Can you see what’s wrong? thanks
In the above code example:
location / {
try_file $uri $uri/ =404;
}
should be:
location / {
try_files $uri $uri/ =404;
}
Note the highlighted ‘s’, else NginX could not apply your changes and your server block will cause a parse error.
Hi, Thank you for an excellent tutorial.
Could you please tell us what the right permission should be for the phpmyadmin symbolic link folder in the document root? [ :/ Eh, assuming that’s what it’s called. ]
The current permission for the same folder on my server is 777, should I be changing it to 755?
Thanks and Regards.
sudo ln -s /usr/share/phpmyadmin /usr/share/nginx/html
From apt Nginx we can installed 1.2.1 version, so the html should be changed to www, like this line:
sudo ln -s /usr/share/phpmyadmin /usr/share/nginx/www
only in later version(1.4) the path contains /html
PS: all html lines should be replaced by www
Hi, how to force SSL / HTTPS when you access http://server_domain_or_ip/nothingtosee (the phpmyadmin folder) ?
I’d rather not access phpmyadmin in http mode. Https is more secured
Thanks for this awesome post … could not get into securing my phpadmin installation as I get stuck with a 403 Forbidden error after trying to reach it …;
I set the link as stated :
sudo ln -s /usr/share/phpmyadmin /var/www/html # I’m using the /var directory…
then upon request to http://www.mydomain.net/phpmyadmin
I get a 403 Forbidden result…
in the log I can see : 2014/11/01 15:55:23 [error] 13195#0: *3 directory index of “/var/www/html/phpmyadmin/” is forbidden, client: XX.XX.XXX.XX, server: _, request: “GET /phpmyadmin”
php-fpm is running fine as I can get http://www.mydomain.net/info.php with the info.php file added into /var/www/html
HOWEVER if I request http://www.mydomain.net/phpmyadmin/index.php then I get the login panel…
what am I missing