Today i'm going to show you how to install an apache server on raspberry pi 1/2/3
Apache 2.0 on raspberry pi 1/2/3
First, connect to your Raspberry Pi 1/2/3 via SSH.
Secondly There’s likely to be updates to install, so go ahead and install them using this code:
“sudo apt-get update && sudo apt-get upgrade”.
Next lets install the latest apache with this code:
“sudo apt-get install apache2 apache2-utils”
Enter your raspberry pi’s ip address this will bring you to the main website.
If you are looking to move your files to the apache server move them to /var/www/html the easiest way to do this is by using filezilla or cyberduck to move the .html files.
To start the webpage use: sudo apachectl start.
To stop the webpage use:sudo apachectl stop.