Report this

What is the reason for this report?

How to accesss phpMyAdmin on Debian?

Posted on April 22, 2019

I just installed phpMyAdmin on my Debian VPS, via apt-get. Now how to access it?

Opening xxx.xxx.xxx.xxx/phpmyadmin on browser gives this: The requested URL /phpmyadmin was not found on this server.



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!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

KIndly reboot your server and try again, if that dosnt work run this command sudo apt-get update && apt-get upgrade -y

that should fix it

if not then read your error logs for a more detailed issue

Hello,

Did the reboot, suggested by @thousifme18 solve your problem? If not, here are some ideas:

  • Kindly note that usually URL is case sensitive. Ie. PhpMyAdmin folder’s name is phpMyAdmin but you are trying to access example.com/phpmyadmin

Firewall

  • Check **port 80 ** on Firewall
sudo iptables -A INPUT -p tcp --dport 80 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT
sudo iptables -A OUTPUT -p tcp --sport 80 -m conntrack --ctstate ESTABLISHED -j ACCEPT
  • Check if **port 3306 ** inbound allowed on Firewall
sudo iptables -A INPUT -i eth1 -p tcp --dport 3306 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT
sudo iptables -A OUTPUT -o eth1 -p tcp --sport 3306 -m conntrack --ctstate ESTABLISHED -j ACCEPT

More info available at https://www.digitalocean.com/community/tutorials/iptables-essentials-common-firewall-rules-and-commands

phpMyAdmin Config

Felipe

The developer cloud

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

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.