sudo apt update
sudo apt install apache2 php php-mysql mysql-server
sudo mysql -u root
Then, inside the mysql client, we created the database and created a user called ‘coding_username’, with the password ‘cheese’ and gave it access to the newly created ‘coding’ database:
create database coding;
grant all on coding.* to coding_username@localhost identified by 'cheese';
quit;
Then we downloaded the Adminer software (
https://www.adminer.org/) using the command line downloader on the Amazon instance (i.e. do this in putty, don't download it to your laptop):
wget https://github.com/vrana/adminer/releases/download/v4.7.3/adminer-4.7.3.php
sudo cp adminer-4.7.3.php /var/www/html/adminer.php