How to host a website on a Raspberry Pi

by | Feb 13, 2022 | Website Making | 0 comments

In this tutorial we are going go throw the steps of hosting a website on a raspberry pi

  • Open the terminal in your Raspberry Pi’s desktop
  • Type “sudo apt-get update & sudo apt-get upgrade” and press enter
  • Reboot the Raspberry Pi
  • Open terminal
  • Type “sudo apt install apache2” and press enter
  • In the terminal type “ifconfig” this shows your private ip address
  • Now on a separate device type that private ip address and press enter

This is what you should see:

  • In the terminal type “sudo nano /var/www/html/index.html” This is the command to edit the website that we saw.
  • To exit press ctrl+x and enter and the website should update on reload of the page

If you want to learn the language html go here for a good source go here: https://www.w3schools.com/html/default.asp

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

four + nine =