Member-only story

Installing Apache2 on Ubuntu

Matthew Morgan
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

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Matthew Morgan
Matthew Morgan

Written by Matthew Morgan

Software Engineer | Hire Me!!

No responses yet

Write a response