1 => cd /usr/share
2 => wget https://www.phpmyadmin.net/downloads/phpMyAdmin-latest-all-languages.zip -O phpmyadmin.zip
3 => unzip phpmyadmin.zip
4 => rm phpmyadmin.zip
5 => mv phpMyAdmin-*-all-languages phpmyadmin
6 => chmod -R 0755 phpmyadmin
7 => nano /etc/apache2/conf-available/phpmyadmin.conf
copy past =>(
# phpMyAdmin Apache configuration
Alias /phpmyadmin /usr/share/phpmyadmin
<Directory /usr/share/phpmyadmin>
Options SymLinksIfOwnerMatch
DirectoryIndex index.php
</Directory>
# Disallow web access to directories that don't need it
<Directory /usr/share/phpmyadmin/templates>
Require all denied
</Directory>
<Directory /usr/share/phpmyadmin/libraries>
Require all denied
</Directory>
<Directory /usr/share/phpmyadmin/setup/lib>
Require all denied
</Directory>
)
8 => a2enconf phpmyadmin
9 => systemctl reload apache2
10 => mkdir /usr/share/phpmyadmin/tmp/
11 => chown -R www-data:www-data /usr/share/phpmyadmin/tmp/
Go there are everything you need:
https://www.how2shout.com/linux/how-to-install-phpmyadmin-on-debian-11-bullseye-apache/