Disclaimer: This guide was automatically translated by AI from the German original. Please verify commands and technical details before using them.
Back to overview: Debian guides
Update your system:
apt update ; apt upgrade -y
Install Apache2, PHP, MariaDB, and the required PHP modules:
apt install sudo gnupg2 apache2 php php-cli php-curl php-gd php-intl php-json php-mbstring php-mysql php-opcache php-readline php-xml php-xsl php-zip php-bz2 libapache2-mod-php mariadb-server mariadb-client -y
Secure the MariaDB installation:
mysql_secure_installation
Note: Press Enter at the password prompt and confirm all questions with Enter, except when setting the root password.
Restart the Apache web server:
systemctl restart apache2
Download and extract phpMyAdmin:
cd /usr/share && wget https://files.phpmyadmin.net/phpMyAdmin/5.0.3/phpMyAdmin-5.0.3-all-languages.zip ; unzip phpMyAdmin-5.0.3-all-languages.zip ; rm phpMyAdmin-5.0.3-all-languages.zip ; mv phpMyAdmin-5.0.3-all-languages phpmyadmin ; chmod -R 0755 phpmyadmin
Create the configuration file:
nano /etc/apache2/conf-available/phpmyadmin.conf
Add the following lines: