Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install phpmyadmin on Mint

I'm new to Linux. I'm trying to install phpmyadmin on Mint.

I tried the following:

sudo apt-get install mysql-server sudo dpkg-reconfigure phpmyadmin sudo service apache2 restart

But I can't access it via : localhost/phpmyadmin.

I have installed mysql and apache. But cannot install and access phpmyadmin.

like image 803
ivva Avatar asked Jan 18 '16 21:01

ivva


People also ask

How do I install phpMyAdmin?

Issue the command sudo apt-get install phpmyadmin php-mbstring php-gettext -y. Type in your sudo password when prompted and then allow the installation to complete.


3 Answers

Open the terminal, type:

sudo gedit /etc/apache2/apache2.conf

and below the end of file, at the last line, type

include /etc/phpmyadmin/apache.conf
like image 87
Mr CaT Avatar answered Sep 27 '22 01:09

Mr CaT


Just ran into this issue myself.

Normally, the Debian (apt) installation stuff installs the software including some basic defaults. The install script asked if it should configure apache2, so it seems this is a bug, since when I got done, gornicht.

Everything else looked good, from phpinfo on. Searching failed to reveal any signs that phpmyinfo was installed in apache2, while MySQL had the appropriate changes.

My solution was as simple as

ln /etc/phpmyinfo/apache.conf /etc/apache2/sites-enabled/001-phpmyinfo

This hard links the default configuration from phpmyadmin's directory over to Apache2's. (Obviously, if you're running lighttp or apache 1, targets and destinations must change.) This adds the phpmyadmin "site" to the list that Apache2 serves. You should look at it for edification.

Anyhow, after that,

sudo apache2ctl restart

sudo mysqld restart

should probably get http://localhost/phpmyadmin working as expected.

(By all means, toss out constructive criticisms. I'm no expert on this.)

like image 42
The Nate Avatar answered Sep 25 '22 01:09

The Nate


I had the same issue with linux mint 18. I have uninstalled phpmyadmin completely from my system and followed the below link to install and configure php, mysql and phpmyadmin. Hope the link given below will help you (link is for ubuntu, but definitely work with mint);

how-to-install-and-configure-apachephpmysql-and-phpmyadmin-on-ubuntu

like image 32
UC_SUJITH Avatar answered Sep 24 '22 01:09

UC_SUJITH