How to install phpMyAdmin on Ubuntu

To install phpMyAdmin on Ubuntu you should have LAMP (Linux, Apache, MySQL and PHP) already installed. If you dont yet have it installed or you don't know how to do it read Installing LAMP on Ubuntu tutorial.

To install phpMyAdmin run:

sudo apt-get install phpmyadmin

If you have latest package of phpMyAdmin in the repository then you will have to enter the password to mysql database (configuration tables are created there) and also login and password for constant using during the installation.

Restart Apache:

sudo /etc/init.d/apache2 restart

Check if the installation was a success by navigating http://localhost/phpmyadmin. If you install phpMyAdmin not on a local server put your server IP instead of localhost.

If this doesn't work you can fix it. All you have to do is to put

include /etc/phpmyadmin/apache.conf
in the end of /etc/apache2/apache2.conf file.

After that restart apache again.

That would be all.

  1. niro
    2014-05-28 04:51:45
    Thanks :)

Got a comment?

captcha =


  1. System (20)
    1. FreeBSD (5)
    2. Linux (9)
  2. Email (2)
  3. DNS (2)
  4. Databases (1)
  5. WebServer (27)
Copyright © 2024 HowToUnix - *nix Howtos and Tutorials
All Rights Reserved.