Home
  • Intro
  •  
  • Energy
    • Energy diversion
    • My Energy Diverter
    • Oven control
    • Resources
  •  
  • Banana Pi M5
    • Install Armbian
    • Setting up
    • SSH connection
    • Static IP address
    • Install SAMBA
    • Install Apache
    • Install MySQL
    • Install PHP
    • Install phpMyAdmin
    • Install FTP server
    • Add web site
    • erase eMMC
  •  
  • Arduino
    • Programming
    • Connecting to PHP/MySQL
  •  
  • Energy app
    • Example
  •  
  • Music server (NAS)
    • miniDLNA
    • Installing on BPi-M5
    • Uploading files

Apache

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.


To install Apache

Log in as root privileged su:
Just in case, update your system ...

BPiM5:yourname:# apt-get update -y && apt-get upgrade -y

Install Apache ..

BPiM5:yourname:# apt install apache2 -y

Run this code to ensure Apache starts up on boot

BPiM5:yourname:# systemctl enable apache2

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 !

Next step: installing database - MySQL Next