phpmyadmin is not working after I installed it

Please read this section in Ubuntu wiki. You will need to configure your apache2.conf to make phpMyAdmin works.

gksu gedit /etc/apache2/apache2.conf

Then add the following line to the end of the file.

Include /etc/phpmyadmin/apache.conf

Then restart apache

/etc/init.d/apache2 restart

Tried various different ways.

Finally this, this from ubuntu documentation, worked for me:

sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf
sudo a2enconf phpmyadmin
sudo service apache2 reload

Ubuntu 16.04

After installing and setting up user and password in mysql and phpmyadmin execute following command

sudo apt install php-gettext

Worked for me...

Edit1 If you just need apache, phPmyAdmin, and MySql just to a Web Application Environment then I Suggest for exampp wich Install All three for you and then you are Ready to go Here is Link

XAMPP Installers and Downloads | Apache Friends