Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Apache is a popular web server application you can install on the Raspberry Pi to allow it to serve web pages.

Install Apache

  1. Follow the commands

    Code Block
    sudo apt update 
  2. Install the apache2 package with this command

    Code Block
    sudo apt install apache2 -y
  3. 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
  4. Browse to the default web page either on the Pi or from another computer on the network and you should see the following

    Image Modified

    This means you have Apache working!

  5. 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

...

So now you have completed the second step! You have set up the Apache server and also uploaded your Rumie project and rumie.json to the web root. The only step left is to configure the Access point for the Pi

Continue to Part 2 3 (Access Point Setup)