Install Apache2
Required:
Raspberry Pi running Raspberry Pi OS (aka raspbian)
Step 2. Install Apache2 and supporting packages
Install apache2 and get mod-wsgi
$ sudo apt install apache2 libapache2-mod-wsgi -y
Step 3. Check if Apache2 is working
Check if apache2 is working:
$ wget -O check_apache.html http://127.0.0.1
$ cat ./check_apache.html | grep works
Or, try this
Run this command to get the IP address:
$ hostname -I
192.168.1.106 [deleted the rest of the output]
Open a browser and enter the ip address, mine is: 192.168.1.106
A web page should appear. It is located at:
/var/www/html/index.html