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!
After “openssl passwd” and entering password, mine doesn’t generate any output.
Edit: it seems like password with 10 or less characters will work. Please edit the article to let users know.
thank you and all this works for me, i just added for windows users about the last tutorial “Step 5 - Setting Up Access via Encrypted (Optional)” I use this link to access SSH through encrypted tunnels using putty from this link: https://docs.bitnami.com/virtual-machine/faq/get-started/access-phpmyadmin/
Hi, Thank you so much for the article! For my purpose I had to list this on Nginx’s server block instead, like below:
location /phpmyadmin {
root /usr/share/;
index index.php index.html index.htm;
location ~ ^/phpmyadmin/(.+\.php)$ {
try_files $uri =404;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
root /usr/share/;
}
}
How can I edit the above to change the location to a symbolic link at “/var/www/html/nothingtosee” so I can access it from example.com/nothingtosee ?
Hi Everyone! Im stuck in the step 1, when i access to my https://domainname.com/phpmyadmin shows me a “403 forbidden”
Then Editing my /etc/nginx/sites-enabled/domain.com file to add index.php, shows me the php code
Thanks for your help!
Quick question:
pma_pass works if https://server_domain_or_IP/nothingtosee is called but if instead https://server_domain_or_IP/nothingtosee**/index.php** is called, then auth dialog is not coming and we directly dive into login page. Any idea to prevent that?
I’m having issues with the Authentication Gateway section. I have produced an encrypted password using openssl and placed it in the pma_pass file (username:encryptedPass). I’ve also added the location block exactly as you have it in /etc/nginx/sites-available/default.
When I log into: http://ServerIP/nothingtosee/ I do get the Admin Login prompt but the username and password never works.
I’ve re-ran the steps over and over and can’t see to find the cause. Any ideas what could be missing?
I am using a fresh Ubuntu LTS 18.04 VPS installation.
Referring to ‘Step 4 — Creating an Authentication Gateway’
I need to admit I cannot create an encrypted password. There is no output in the console after using ‘openssl passwd’ as indicated in the article above. The same result is with root or local, sudo group user. Has anybody got the same result by using this command?
Referring to’ Step 5 — Setting Up Access via Encrypted Tunnels (Optional)’
In a browser (checked in Chrome and Microsoft Edge), output for address ‘https://server_domain_or_IP/nothingtosee’ is ‘403 Forbidden’
but if you end it and use with ‘/index.php’ as ‘https://server_domain_or_IP/nothingtosee/index.php’
you get normal unrestricted access to the phpMyAdmin login page.
All restrictions setup in /etc/nginx/sites-available/example.com:
server { . . .
location /nothingtosee {
satisfy all; #requires both conditions
allow 203.0.113.111; #allow your IP
allow 127.0.0.1; #allow localhost via SSH tunnels
deny all; #deny all other sources
auth_basic "Admin Login";
auth_basic_user_file /etc/nginx/pma_pass;
}
. . .
can be easily bypassed with this address:
‘https://server_domain_or_IP/nothingtosee/index.php’.
Conclusion: Security methods founded in this article are very weak.
Just in case someone still cares, here’s the solution to the “index.php-problem”:
server {
. . .
location ^~ /phpmyadmin/ {
auth_basic "Admin-Login";
auth_basic_user_file /etc/nginx/pma_pass;
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
}
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
}
. . .
}
It doesn’t work. When I type mydomain.ca/phpmyadmin, it shows a 404 Not Found error.