I tried to install phpmyadmin using:
sudo apt -t buster-backports install phpmyadmin
Following this guide because I'm on the 64 bit version of Raspian.
When trying to access http://<ip>/phpmyadmin
I see the php code.
How do I get this to work?
pi@rpi4-metal:/var/www/html $ sudo apache2 -v
Server version: Apache/2.4.46 (Debian)
Server built: 2021-01-20T07:40:46
pi@rpi4-metal:/var/www/html $ php -v
PHP 7.3.27-1~deb10u1 (cli) (built: Feb 13 2021 16:31:40) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.27, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.27-1~deb10u1, Copyright (c) 1999-2018, by Zend Technologies
pi@rpi4-metal:/var/www/html $ sudo a2enmod php7.3
ERROR: Module php7.3 does not exist!
This is on a RPi 4:
pi@rpi4-metal:/var/www/html $ uname -r
5.10.11-v8+