Jako výchozí stránky použiji https://www.howtoforge.com/tutorial/install-apache-with-php-and-mysql-lamp-on-debian-stretch/

1. MariaDB
apt-get -y install mariadb-server mariadb-client
mysql_secure_installation

a/ zadám root heslo

b/ change the root password ?  yes

New password: zadám

Re-enter: zadám znovu

Remove anonymous users ? yes

Dissalow root  login ? yes

Remove test database ..? yes

Reload ...? yes

2. Apache2

apt-get -y install apache2

3. PHP

apt-get -y install php7.0 libapache2-mod-php7.0
service apache2 restart

4.Mysql a MariaDB podpora PHP 

apt-cache search php7.0
apt-get -y install php7.0-mysql php7.0-curl php7.0-gd php7.0-intl php-pear php-imagick php7.0-imap php7.0-mcrypt php-memcache php7.0-pspell php7.0-recode php7.0-sqlite3 php7.0-tidy php7.0-xmlrpc php7.0-xsl

5. Phpmyadmin

apt-get -y install phpmyadmin

6. Doladění  root práv

sudo mysql -u root -p

MariaDB>
GRANT ALL PRIVILEGES ON *.* TO 'phpmyadmin'@'localhost' WITH GRANT OPTION;

MariaDB>
CREATE USER 'meteo'@'localhost' IDENTIFIED BY 'heslo pro meteo uzivatele';

MariaDB>

USE mysql;

MariaDB [mysql]>

UPDATE user SET plugin='mysql_native_password' WHERE User='root';

MariaDB [mysql]>
FLUSH PRIVILEGES;
exit
service mysql restart

Teď bychom se měli na root a heslo dostat do phpmyadmin.