Sunday, June 25, 2017

How to install phpmyadmin in linux

To install phpmyadmin, run the following commands:

sudo apt-get update
sudo apt-get install phpmyadmin

After that if it is still not possible to access phpmyadmin via
http://localhost/phpmyadmin

Add a following  line to a file: /etc/apache2/apache2.conf

Include /etc/phpmyadmin/apache.conf

And restart the server by:

sudo service apache2 restart

Source:https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-ubuntu-16-04

Monday, June 19, 2017

How to connect to Mariadb with Phpmyadmin

A new debian 9 comes with Mariadb as a substitute of mysql by default. If you don't have the installation of refer to https://mariadb.com/downloads.

Next, you have to install phpmyadmin. Since I am on debian, my command is:

sudo apt-get install phpmyadmin

After that, include the following line in /etc/apache2/apache2.conf.

/etc/phpmyadmin/apache.conf