Install and Configure phpMyAdmin on Ubuntu LAMP

PhpMyAdmin is a nice database management and administration tool, it is easy to install it, but some people are having problems making it work under apache, that’s because it needs configuration. I presume you already have LAMP installed and configured on your machine, if not, please read this post – Install and Configure LAMP on Ubuntu first.

Just in case you haven’t installed phpMyAdmin yet, type the following line in the Terminal:
apt-get install phpmyadmin

To set up under Apache all you need to do is include the following line in /etc/apache2/apache2.conf, first type the following command to open up this file:
gksudo gedit /etc/apache2/apache2.conf

Add the following line of code inside apache2.conf:
Include /etc/phpmyadmin/apache.conf

Now restart Apache:
sudo /etc/init.d/apache2 restart

Point your browser to: http://domain/phpmyadmin, you should be able to see the phpMyAdmin landing page now!

Related Article:
Create a Subdomain Virtual Host on Ubuntu

Be Sociable, Share!

About Shi Chuan

I am a web developer.
This entry was posted in Linux and tagged . Bookmark the permalink.

92 Responses to Install and Configure phpMyAdmin on Ubuntu LAMP

  1. frank says:

    thanks for the help it was vry helpfull

  2. si2ed says:

    thanks dude, great job.

  3. tiago says:

    works like a charm

  4. Digo says:

    Hi, while i tried to login it is dhowing this error,
    Login without a password is forbidden by configuration (see AllowNoPassword)

  5. Bob says:

    Thanks. Works for me.

  6. siva says:

    Many Thanks. It saved my time. Works fine.

  7. Jaider says:

    Genial, Gracias me funcionó de maravillas. Dios te siga bendiciendo en conocimientos, porque asi podés ayudar a muchos.

  8. Kay says:

    Thanks a lot mate :D

  9. Thongam says:

    wow!! it really help me
    Thank you brother

  10. bala says:

    Thanks dude.. my eight hour search ends now ;-)

  11. maximkott says:

    Thank you very much, you helped me out dude!

  12. Hardi says:

    Thanks

  13. Aswanth says:

    Dat was really helpful. Thnkd dude….

  14. Surinder says:

    Great.. one line added to conf put me out of my misery. Thanks for the help.

  15. nullpointer says:

    Thanks.

  16. Pingback: Ubuntu LAMP-part 1 | Garejoor

  17. Fritz says:

    Works like a charm!
    thank you :-)

  18. Adam Shuy says:

    I solved the http://127.0.0.1/phpmyadmin not found by your post on my ubuntu 11.0.4 virtualbox on my Window 7.

    Then it asked me to input username and password to proceed.
    I tried many username and password but failed.

    How can I solve the above problem?

  19. Adam Shuy says:

    I was able to access to the phpmyadmin/index.pp page. thanks!!

  20. Grace says:

    Worked for me! Thank!

  21. BrnTsw says:

    Thank you very much!

  22. Milky says:

    I did what the article said, and got it working in notime, even without touching apache conf, as the installer asks for the change.
    Thanks!

  23. Rob says:

    Didn’t work

  24. Abdul says:

    At lat worked..Thanks for info

  25. el alami mohamed says:

    it works really thank u

  26. adam torro says:

    Thank you! That did work after installing LAMP.

  27. Works like a charm.. Thanks a lot :)

  28. david says:

    Thanks, a big help.

  29. rio says:

    after do that
    /etc/init.d/apache2 restart
    =>
    The Alias directive in /etc/phpmyadmin/apache.conf at line 3 will probably never match because it overlaps an earlier Alias.

  30. Lil says:

    Thanks man! This did help me

  31. Roshan says:

    Thanks This is working

  32. Khanh says:

    Thank so much! This page is very helpful with me

  33. Mikka says:

    It worked, thank you! :)

  34. Pingback: Free Log Server with Web Access/Search – Ubuntu syslog-ng + Apache + MySQL + PHP +Webmin « Ryan Tian

  35. I had the following error message
    The requested URL /phpmyadmin was not found on this server.
    plz suggest me a solution.
    OS: Ubuntu 10.04

  36. Mark says:

    Restart can be also done without sudo.

  37. Quality content is the key to attract the users to pay a quick visit the web page,
    that’s what this site is providing.

  38. Tom Anderson says:

    YOU can use on ubuntu – best free tool Valentina Studio, does everything you need, and does it very well http://www.valentina-db.com/en/valentina-studio-overview

  39. Many newly founded businesses are foumded with
    the input off a loan, andd given the significant amount of money required to even hhave a basic shell of a business
    operative,banks and funancial lenders will want some
    collateral to secure the loan. I receive howls of protest when I
    write this kind of thing. The exact plzns to mmeet different needs and your budget are available.

    my blog post make money fast

  40. If some one wishes to be updated with most up-to-date technologies therefore he must be visit
    this website and be up to date all the time.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>