Installing using apt-get, in some versions of Ubuntu/Ubuntu server it is necessary to directly add the phpmyadmin path in the apache configuration file, so type in the terminal:
vim /etc/apache2/apache2.conf
Appendage a last line with the parameter below and save the file
Include /etc/phpmyadmin/apache.conf
Then restart the apache:
service apache2 restart
Since you invented to change the folder and such, if it doesn’t work out, uninstall, install and follow what I said up there. Another way is to install by downloading the package instead of using apt-get:
In the terminal enter your apache root folder, usually /var/www/ or /var/www/html
Download the file in https://www.phpmyadmin.net/
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! Log in http://localhost/phpmyadmin.
*Remember that the phpmyadmin login screen makes a connection to the mysql server. If your mysql server password is empty, you need to change the phpMyAdmin configuration file to allow empty password logins. For this we will edit the file:
vim /var/www/phpmyadmin/libraries/config.default.php
Find the line
$cfg[ǐ Servers'][$i][pra Allownopassword'] = ";
Replace with
$cfg[pra Servers'][$i][pra Allownopassword'] = and true';
Save and close the file. Ready!
I didn’t find this file
– Mike
How do I set this up?
– Mike
Because you don’t try before: apt-get remove phpmyadmin and then install again. It’s usually faster.
– Andre Mesquita
I tried to
dpkg-reconfigure -plow phpmyadmin
but I’ll try as you said. I’m desperate I need to set this up before 2pm– Mike
Worked by reinstalling?
– Andre Mesquita
It is currently in the folder
/etc/httpd/conf.d/phpMyAdmin.conf
– Joannis