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

前端 未结 3 646
长情又很酷
长情又很酷 2021-01-20 02:21

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

相关标签:
3条回答
  • 2021-01-20 03:12

    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.

    0 讨论(0)
  • 2021-01-20 03:16

    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

    0 讨论(0)
  • 2021-01-20 03:17

    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

    0 讨论(0)
提交回复
热议问题