Installing PHPMyAdmin

May 30, 2017 1.3k views
Apache PHP MySQL Ubuntu

I pre-installed LAMP with my droplet and then i opened terminal and put in "sudo apt-get install phpmyadmin" and it ran like it was working right. I hit y to confirm and then i restarted my droplet and tried to access /phpmyadmin on my server and it says "The requested URL /phpmyadmin was not found on this server." I did indeed install it on apache 2 as i have seen some articles about that. Any details why i cannot access it?

Regards,
Jarrod

1 Answer

Hi @jarrodestepp16

Did you remember to tick the apache2 option in the installation wizard? It's not the most user friendly interface, so it's easy to make a mistake there.

You should have a phpMyAdmin configuration located in /etc/apache2/conf-enabled/ if the installation was successful - and you shouldn't need to restart the entire server, it should be enough by restarting Apache.

If you want to reinstall and see the configuration wizard again, you need to remove and purge your current installation of phpMyAdmin first:

sudo apt-get --purge remove phpmyadmin

You can read more in this tutorial:
https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-ubuntu-16-04

While many users require access to a database management system like MySQL, not all users feel comfortable interacting with the MySQL prompt on a daily basis. In this guide, we'll discuss how to install and secure phpMyAdmin, a web management interface for MySQL, on an Ubuntu 16.04 server.
Have another answer? Share your knowledge.