Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Recently I have install the PHP, Apache, MySQL, phpMyAdmin, python in my Ubuntu Desktop 12.04.3 LTS to use it as a LAMP server. The commands I used to install these are given below:

1: sudo passwd
2: su
3: apt-get install php5
4: apt-get install apache2
5: apt-get install mysql-server mysql-client
6: apt-get install phpmyadmin
7: apt-get install python
8: apt-get install python-mysqldb
9: ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf
10: /etc/init.d/apache2 restart

Then everything works fine. The LAMP server runs great. Then i thought to upgrade the whole LAMP server I mean the PHP, Apahce, MySQL, phpMyAdmin etc. Then I searched in google and get some ppa which got the latest versions of these softwares. Then I added those ppa. The ppa links:


Then is used these ppa and firstly upgraded the phpmyadmin then MySQL server then Apache and then PHP. After upgradation of phpmyadmin and mysql server the whole LAMP server runs well with the updated mysql server and phpmyadmin. But after the upgradation of Apache and PHP the phpmyadmin is not showing up. When I try:

it says "Not Found".

How can I sove this problem with the phpmyadmin?? Please help me as fast as you can. I am in great trouble for this.

Thanks in advance.

share|improve this question
consider – Sushantp606 Dec 6 '13 at 14:09
up vote 96 down vote accepted

Create a link in /var/www like this:

sudo ln -s /usr/share/phpmyadmin /var/www/

Note: since 14.04 you may want to use /var/www/html/ instead of /var/www/

If that's not working for you, you need to include PHPMyAdmin inside apache configuration.

Open apache.conf using your favorite editor, mine is vim :)

sudo vim /etc/apache2/apache2.conf

Then add the following line:

Include /etc/phpmyadmin/apache.conf

For Ubuntu 15.04 and 16.04

  • sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf
  • sudo a2enconf phpmyadmin.conf
  • sudo service apache2 reload
share|improve this answer
After this I needed to restart the apache server. – mostafiz Sep 25 '14 at 0:17
Bypassed the first recommendation and went straight for the Include. Worked like a charm. Thanks @Achu – BlakePetersen Nov 26 '14 at 4:54
sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf followed by sudo a2enconf phpmyadmin.conf and sudo service apache2 reload is the correct way with 15.04. – Henry's Cat May 11 '15 at 1:07
1000 thanks from me :* love you. Perfect answer! – Lachezar Raychev Jan 11 at 12:55
Thanks.... Its really helped me.. – Sunny S.M Jul 13 at 20:06

Most probably your apache doesn't load the configuration of the phpmyadmin part.

The link you made from /etc/phpmyadmin/apache.conf to /etc/apache2/conf.d/phpmyadmin.conf may not be valid anymore after the update. Make this link again, but notice the names may be different. After that, restart apache.

share|improve this answer

you can also install this by manual process.

just download file to your web root folder.(/var/www/phpmyadmin)

for more Click Here Download from here

share|improve this answer

Here is another alternative way to do it:

  1. Add to /etc/apache2/apache2.conf this "Include conf.d/*.conf" if it is not already there.

  2. Next execute those two commands:

    sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf
    sudo /etc/init.d/apache2 reload

It should be working.

share|improve this answer

Usually this is an issue after a vanilla install in 16.04 (Xenial Xerus) too.

To fix it:

sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf
sudo a2enconf phpmyadmin.conf
sudo systemctl restart apache
share|improve this answer

protected by Community Jan 7 '15 at 18:51

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.