Originally this was posted on my old website but seeing as several people still come to my site for this, I will add it here

Firstly you will need to SSH to the server you are running. If you are unsure how to do this, there are lots of good videos on youtube. If you're still struggling, hit the Contact button at the top and get in touch!

Install apache2 and php

sudo apt-get install apache2 php -y

Once that is done, enable apache2 to start on boot. This may vary but on most modern systems you can use

sudo systemctl enable apache2

In your current directory, git clone the repository to your server

git clone https://github.com/adolfintel/speedtest.git

Copy all the files from here in to /var/www/html with

cp speedtest/* /var/www/html

Once that is done, go to the /var/www/html folder with cd /var/www/html

In here, delete the index.html

sudo rm index.html

Now depending on what page you like, I chose the one called 'Example-pretty' as it sounded nice, you just need to change it's name to index.html/

I suggest copying it

touch index.html
cp example-pretty.html index.html

Once done, restart apache2 for good measures

sudo systemctl restart apache2

Go to the IP address or host name of your server, and you should be presented with the page!

You can hire me via Upwork or emailing me for weekend projects!