How to access to phpmyadmin

March 14, 2016 5k views
DigitalOcean Applications Ubuntu

Hi, I installed phpmyadmin following: How To Install and Secure phpMyAdmin with Nginx on an Ubuntu 14.04 Server

I ran:

sudo apt-get install phpmyadmin

I selected No for dbconfig-common since I already have database installed.

sudo ln -s /usr/share/phpmyadmin /usr/share/nginx/html
sudo php5enmod mcrypt
sudo service php5-fpm restart

When I goto or
I got page not found error.

I website is using PHP and Laravel 5.1.

How can I remotely use phpmyadmin? Thanks.

2 Answers

Do this first

sudo gedit /etc/apache2/apache2.conf

add this line somewhere

Include /etc/phpmyadmin/apache.conf

and finally restart apache.

/etc/init.d/apache2 restart

The db-config request is to set up the database used by phpmyadmin and set up your credentials so it can connect with your db server. It does not overwrite your current tables. Without this step you will have to manually configure phpmyadmin by editing /etc/phpmyadmin/config.inc.php

Have another answer? Share your knowledge.