Member-only story
Installing Apache2 on Ubuntu
Jan 21, 2025
Get started quick with Apache2 on a Ubuntu instance.
Update apt and install Apache2
sudo apt update
sudo apt install apache2 -y
Verify it is running
sudo systemctl status apache2
If not, Start it
sudo systemctl start apache2
Enable Apache2
sudo systemctl enable apache2
Visit your IP to see if apache2 is running
http://<your-server-ip>

OPTIONAL: install mod_wsgi
sudo apt install libapache2-mod-wsgi-py3 -y
sudo a2enmod wsgi