Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't access phpmyadmin after installation

I'm trying to install phpmyadmin on my new server, following this guide

apt-get install phpmyadmin
nano /etc/apache2/apache2.conf

then added phpmyadmin to apache configuration:

Include /etc/phpmyadmin/apache.conf

and restarted apache:

service apache2 restart

All this by SSH.

But now when i try to access: x.x.x.x/phpmyadmin all that i get is that my browser downloads a file... Can someone help with this?

like image 547
Cereal Killer Avatar asked Aug 30 '13 22:08

Cereal Killer


People also ask

How do I access phpMyAdmin after installation?

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. Then select Apache 2 for the webserver you wish to configure.

Why my phpMyAdmin is not working?

I solved this problem by changing the proxy of my firefox browser, go to menu tools-Option find tab Network, click button settings. Fill the text box below No Proxy for with localhost. Then press Ok, then Ok again. Try now typing localhost/xampp then it should show Welcome to XAMPP for Windows!

Can not access phpMyAdmin Ubuntu?

sounds like you don't have PHP installed / configured correctly. as per the guide you referenced "Before working with phpMyAdmin you need to have LAMP installed on your server. If you don't have the Linux, Apache, MySQL, PHP stack on your server, you can find the tutorial for setting it up here..."


2 Answers

If you are sure that you do have lamp-stack just open up your terminal and type edit

/etc/apache2/apache2.conf

and paste the following at the end of file

Include /etc/phpmyadmin/apache.conf

Save the file and restart using sudo service apache2 restart

You can also visit https://help.ubuntu.com/community/phpMyAdmin for more details.

like image 53
Mani Avatar answered Oct 11 '22 05:10

Mani


You can do two things I guess, as I've experienced both of them : 1. you need to add

sudo -H gedit /etc/apache2/apache2.conf

2. Add this line at last or somewhere in code:

Include /etc/phpmyadmin/apache.conf

3. restart :

sudo service apache2 restart

but this didn't worked for me(apache2 failed to restart), as it worked for many. Otherwise you can eve try:

ln -s /etc/phpmyadmin/apache.conf /etc/apache2/sites-enabled/001-phpmyadmin

Or

sudo dpkg-reconfigure phpmyadmin

and under webserver select: apache.

like image 29
Yash Jain Avatar answered Oct 11 '22 06:10

Yash Jain