To install phpmyadmin in Ubuntu 16.04 you must run:
apt-get install phpmyadmin
During the process you will be asked if you want to manage and install a database with dbconfig-common
, after which you will be asked for the user's key root
of the database and a key (option, which you can pass by pressing < kbd> Enter to generate a random) for internal data of the application phpmyadmin
and, finally, if you want to configure it on the server apache2
or lighttpd
.
It will create a configuration in /etc/apache2/conf-available/phpmyadmin.conf
that you can activate or deactivate with the commands a2enconf phpmyadmin
and a2disconf phpmyadmin
, after which you must execute a reload of the server configuration apache2
with the command service apache2 reload
.
I recommend you execute that command also after the installation of phpmyadmin
or after modifying any configuration file of apache2
, installation of PHP modules, etc.
Remember to preinstall server mysql-server
or execute dbconfig-commmon
will fail.
If for any reason you ignored any installation error message and want to repeat the process again, use the dpkg-reconfigure phpmyadmin
command.