Installing using apt-get, in some versions of ubuntu / ubuntu server it is necessary to directly append the phpmyadmin path in the apache configuration file, to do so type in the terminal:
vim /etc/apache2/apache2.conf
Add a last line with the parameter below and save the file
Include /etc/phpmyadmin/apache.conf
After restarting apache:
service apache2 restart
How did you decide to change the folder and such, if it does not work, uninstall, install and follow what I said up there. Another way is to install by downloading the package rather than using apt-get:
In the terminal enter your apache root folder, usually / var / www / or / var / www / html
Download the file at link
wget https://files.phpmyadmin.net/phpMyAdmin/4.5.2/phpMyAdmin-4.5.2-all-languages.zip
unzip phpMyAdmin-4.5.2-all-languages.zip
mv phpMyAdmin-4.5.2-all-languages phpmyadmin
Ready! Visit
link .
* Remember that the phpmyadmin login screen makes a connection to the mysql server. If your mysql server password is blank, you need to change the phpMyAdmin configuration file to allow logins with blank passwords. For this we will edit the file:
vim /var/www/phpmyadmin/libraries/config.default.php
Find the line
$ cfg ['Servers'] [$ i] ['AllowNoPassword']=";
Replace with
$ cfg ['Servers'] [$ i] ['AllowNoPassword'] = 'true';
Save and close the file. Soon!