Weird error in phpmyadmin, It is installed successfully but still not working

懵懂的女人 提交于 2019-12-02 00:04:17
Rahul Satal

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

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!