Apache is ".. an open source web server that’s available for Linux servers free of charge.". It's universally used and it the 'standard' for serving web sites to the internet.
If you wish to manage your 'home' through local web pages in an app, complete with database, this is what you need.
It is step 1 in making your BPi-M5 able to manage and record all your home sensors.
Log in as root privileged su:
Just in case, update your system ...
Install Apache ..
Run this code to ensure Apache starts up on boot
That is done !!
To check, type the IP address of your BPi-M5 into a web browser and you will see a default web page showing your Apache install. You have a web server, serving web pages !