PHP is ".. general-purpose scripting language used extensively in web page interaction". It's universally used and is an industry 'standard'.
If you wish to record data from your sensors this is what you need.
It is step 3 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 PHP ...
After installation, it's a good idea to alter Apache's priority table so index.php has top priority over inde.html
Change the entry (the only entry!). Move index.php to the FIRST position so it reads:--
DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.htm
Exit and Save: by pressing ... Ctrl+X .... Y ... Enter
Re-start Apache