How to install Apache web server on Ubuntu 20 server

Adding apache web server to your trading bot is not needed at all, but some people may want to see how resources are in use easily via the web.

Below are the commands you can copy/paste.

hostnamectl set-hostname hostname-goes-here

apt install -y apache2 apache2-utils
systemctl enable apache2
chown www-data:www-data /var/www/html/ -R
apt install php7.4 libapache2-mod-php7.4 php7.4-mysql php-common php7.4-cli php7.4-common php7.4-json php7.4-opcache php7.4-readline -y
a2enmod php7.4
systemctl restart apache2

apt update
apt install software-properties-common -y
add-apt-repository universe
apt update
apt install certbot python3-certbot-apache -y
certbot –apache

cd /var/www/html
mv index.html index.1html
touch index.html
mv linfo-master linfo
cd linfo && sudo mv