Apache is a popular web server application you can install on the Raspberry Pi to allow it to serve web pages.
Install Apache
Follow the commands
Code Block sudo apt update
Install the
apache2
package with this commandCode Block sudo apt install apache2 -y
Test the Web Server
Code Block #By default, Apache puts a test HTML file in the web folder Type http://localhost/ on your browser or type the Pi IP addresss itself http://192.168.1.10 (whatever the Pi's IP address is) in the browser
Browse to the default web page either on the Pi or from another computer on the network and you should see the following
This means you have Apache working!
Once you have done that, let's go to the root folder
Code Block # /var/www/html -> web root #here we will see the index.html that is being displaced on our browser #we need to give read, write and executable permissions to this root folder to perform further steps sudo chmod a+rwx /var/www/html
...