---
title: Adminer
url: 'https://kb.stavlib.cz/www/adminer'
markdown: 'https://kb.stavlib.cz/www/adminer.md'
date: '2026-10-26'
description: 'Instalation of apache2, php, mariadb-server (MySQL) and related modules apt install apache2 php libapache2-mod-php php-curl php-cli php-mysql php-gd mariadb-server mysql-client Enable and start apache2 + mariadb systemctl start apache2 systemctl start mariadb systemctl enable apache2 systemctl enab…'
---

# Adminer

[](#)# Adminer

Instalation of apache2, php, mariadb-server (MySQL) and related modules

```bash
apt install apache2 php libapache2-mod-php php-curl php-cli php-mysql php-gd mariadb-server mysql-client
```

Enable and start apache2 + mariadb

```bash
systemctl start apache2
systemctl start mariadb
systemctl enable apache2
systemctl enable mariadb
```

```bash
mysql_secure_installation
```

```bash
wget "http://www.adminer.org/latest.php" -O /var/www/html/adminer.php
chown -R www-data:www-data /var/www/html/adminer.php
chmod 755 /var/www/html/adminer.php
```

http://your-ip/adminer.php

TIP

while in mysql, disable root login by running

use mysql; update user set plugin='' where User='root'; flush privileges; exit;

change root password that will be required

mysql -u root -p SET PASSWORD FOR 'root'@'localhost' = PASSWORD("newpassword"); flush privileges; exit;

---

## Navigation

- Previous: [Moodle](https://kb.stavlib.cz/www/moodle.md)
