I created a script, which will automatically fetch, install and configure the phpMyAdmin to your Ubuntu machine.
The version that exists in the default repository of Ubuntu is very old. And every time manually download and configure the phpMyAdmin is a pain. So using bash programming I just automate the whole process. Check out the script from here.
All you need is to run the following command to install phpMyAdmin:
curl -sL https://gist.github.com/ImaginativeShohag/45aeb30b3e43dcf95bf73cb2a4e77046/raw | sudo bash -
Note: Please remove previously installed phpMyAdmin first using
sudo apt remove phpmyadmin.
This script also can be used to upgrade phpMyAdmin. Just run again when a new version will come.
You can also check out my “How to create a LAMP server for PHP development“, you will find some common bugs solution related to phpMyAdmin and other LAMP stacks.