How to install phpmyadmin on Mint

22,514

Solution 1

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

Solution 2

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

Solution 3

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.)

Share:
22,514
ivva
Author by

ivva

Updated on July 05, 2022

Comments

  • ivva
    ivva almost 2 years

    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.