Skip to content

PhpMyAdmin, Apache2 and MySQL ​

Install Apache2: ​

  1. open a terminal window on your server
  2. enter the following command to start the installation of Apache2:
sudo apt update && apt install apache2 -y
sudo apt update && apt install apache2 -y

Install MySQL: ​

  1. enter the following command to start the installation of MySQL:
sudo apt install mysql-server -y
sudo apt install mysql-server -y
  1. during the installation you will be asked to set a password for the MySQL root user. Enter a secure password and save it in a safe place.

Install PhpMyAdmin:

  1. enter the following command to start the installation of PhpMyAdmin:
sudo apt install phpmyadmin -y
sudo apt install phpmyadmin -y
  1. during the installation you will be asked to select a web server. Select Apache2 and press the Enter key
  2. during the installation you will be asked to set a password for the PhpMyAdmin administrator account. Enter a secure password and save it in a safe place
  3. when you are finished, open your web browser and enter the address "http://Server-Adresse/phpmyadmin/". You should be prompted to log in with your PhpMyAdmin administrator account.

Configure PhpMyAdmin: ​

  1. open the file "config.inc.php", which is located in the directory "/etc/phpmyadmin/"
nano /etc/phpmyadmin/config.inc.php
nano /etc/phpmyadmin/config.inc.php
  1. change the line "$cfg['blowfish_secret']" to a random string that is at least 32 characters long. c. Save the changes and close the file.

INFO

Now save the input with CTRL + O and close the window with CTRL + X