Open Laboratory for Technocrats

Grab the developer role, learn concepts & prepare with senior software engineers to get solutions for problems in a software job. Coding and Programming Solutions crafted for you.

PhpMyAdmin - Missing from localhost - Ubuntu

This is a little uncommon issue that usually while upgrading or downgrading from one version to another happens then user need to face this kind of issue.

Ubuntu 14.04 Lts seems to be cool while upgrading it from 12.04 Lts, Everything goes great until I moved to the page on the browser for localhost/phpmyadmin

I was able to access the DB from terminal but while trying to access through browser I was getting the Not Found Error.

So I tried to figure out the issue and after exploring I figured out that changes are there in the www folder structure for the Brand New 14.04 Lts. So next thing I went to various search engines and then surely the answer came out at http://askubuntu.com/. 


The solution that helped me might help others too is as:

Create a link in /var/www like this:  sudo ln -s /usr/share/phpmyadmin /var/www/

Here we are creating a shortcut to the directory /var/www from the operating path of the PHPMyAdmin under the /usr/share folder in the filesystem of ubuntu. We need to make sure that there is no HTML folder in /var/www folder if it's there as it comes in 14.04 by default so we have to create the link in /var/www/html like this:  
sudo ln -s /usr/share/phpmyadmin /var/www/html

That's it and we are ready to play with PHPMyAdmin on the browser again. :)


In some cases, it may help because they need a little more after that. so here we go for the apache thing as:

We need to include PHPMyAdmin inside apache configuration as
Open in the editor you like here I am using gedit:
sudo gedit /etc/apache2/apache2.conf

Then we just need to add the following line:
Include /etc/phpmyadmin/apache.conf
And now we are done here :)

Enjoy and if any doubts please leave a comment. 

Top #3 Articles