Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I can't access http://localhost/phpmyadmin/

Tags:

php

phpmyadmin

People also ask

Why my localhost phpMyAdmin is not opening?

Try starting MySQL and Apache in Xampp. Verify Port Number assigned to Apache (By default it should be 80). Now load localhost/phpmyadmin . It solved my problem.

How do I access my localhost phpMyAdmin?

Once phpMyAdmin is installed point your browser to http://localhost/phpmyadmin to start using it. You should be able to login using any users you've setup in MySQL. If no users have been setup, use admin with no password to login.

What is http localhost phpMyAdmin?

http://localhost/phpmyadmin phpMyAdmin is a free, open-source web-based database management program written in PHP that is intended to manage MySQL databases online.


what you need to do is to add phpmyadmin to the apache configuration:

sudo nano /etc/apache2/apache2.conf

Add the phpmyadmin config to the file:

Include /etc/phpmyadmin/apache.conf

then restart apache:

sudo service apache2 restart

On windows, I think you can just navigate to the apache2 config file and include the phpmyadmin config file as shown above, then restart apache


A cleaner way is to create the new configuration file:

/etc/apache2/conf-available/phpmyadmin.conf

and write the following in it:

Include /etc/phpmyadmin/apache.conf

then, soft link the file to the directory /etc/apache2/conf-enabled:

sudo ln -s /etc/apache2/conf-available/phpmyadmin.conf /etc/apache2/conf-enabled

You should use localhost:portnumber/phpmyadmin Here the Portnumber is the number which you set for your web server or if you have not set it until now it is by Default - 80.


Make sure that both apache webserver and MySQL server are running. I had the same failure because I forgot to start my webserver.


when you run Xampp, check the apache port no. ex: if it is displaying port 80, then type

http://localhost:80/phpmyadmin/

After that it will display automatically

http://localhost/phpmyadmin/


I am using Linux Mint : After installing LAMP along with PhpMyAdmin, I linked both the configuration files of Apache and PhpMyAdmin. It did the trick. Following are the commands.

sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf

sudo /etc/init.d/apache2 reload