How to access to phpmyadmin

March 14, 2016 6.3k views
DigitalOcean Applications Ubuntu
daolinch
By:
daolinch

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 http://159.203.85.69/phpmyadmin or http://159.203.85.69/phpmyadmin:8000
I got page not found error.

I website is using PHP and Laravel 5.1.

How can I remotely use phpmyadmin? Thanks.

4 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

HI,

i had choosed retry option while installation. and now it is not installing it is showing
phpmyadmin : Depends: libjs-sphinxdoc (>= 1.0) but it is not installable
Depends: dbconfig-mysql but it is not installable or
dbconfig-no-thanks but it is not installable or
dbconfig-common (< 2.0.0) but it is not installable
Recommends: php-curl
Recommends: php-gd
Recommends: php-bz2
Recommends: php-zip
Recommends: php-tcpdf but it is not installable
E: Unable to correct problems, you have held broken packages.

please help me

E: Unable to locate package php5
E: Unable to locate package php5-mysql
E: Unable to locate package mysql-server

Have another answer? Share your knowledge.