I have been struggling to install phpmyadmin from whole day. I have tried it reinstalling many times, but its not working. On opening localhost/phpmyadmin i am getting some
Try this:
localhost/phpmyadmin/index.php
If it works, it seems the problem of apache loading javascript through alias (/phpmyadmin is an alias of /usr/share/phpmyadmin).
I was using the previous URL for a while then I found the solution by accident actually after I simply changed the basic apache root which was "/var/www/html/" to somewhere else. Then
localhost/phpmyadmin
began to work.
Is PHP installed? If it is installed, was Apache restarted after PHP was installed?
Has it been enabled? sudo a2enmod php5
https://help.ubuntu.com/community/ApacheMySQLPHP
Finally my problem is solved!. I dont exactly know which commands worked for me but these are the last commands i run to solve the problem.
sudo apt-get install -f
sudo apt-get remove --purge apache* && sudo apt-get remove --purge libapache* && sudo apt-get remove --purge php*
sudo apt-get remove --purge php5-common php5-cli
sudo apt-get install apache2 php5 libapache2-mod-php5 mysql-server php5-mysql
sudo service apache2 restart sudo apt-get install phpmyadmin sudo service apache2 restart
sudo apt-get remove --purge php5-common php5-cli
sudo apt-get install apache2 php5 libapache2-mod-php5 mysql-server php5-mysql
sudo service apache2 restart
and browse it on http://localhost/phpmyadmin/
If your problem still not solved then first install node js by-
sudo apt-get update
sudo apt-get install nodejs
then again try all commands because i have also installed node js before running above commands i think node js is related to this javascript problem or refer questions-https://askubuntu.com/questions/308523/i-have-broken-ubuntu and https://askubuntu.com/questions/307761/php-server-setup-not-working