Turn your Raspberry Pi into a Web Server

Subscribers:
68,100
Published on ● Video Link: https://www.youtube.com/watch?v=9pn1KKhxwdM



Duration: 7:21
112,302 views
2,301


You can do just about anything with a Raspberry Pi, including turning it into your very own web server that you can access on your local network. Here we show you how to do it.

Raspbian: https://www.raspberrypi.org/downloads/
Etcher: https://www.balena.io/etcher/

Code Snippets:
sudo apt-get update
sudo apt-get upgrade
reboot
sudo apt install apache2 -y
hostname -I
cd /var/www/html
ls -al
sudo chown pi: index.html
nano index.html
sudo apt install php libapache2-mod-php -y
sudo nano /var/www/html/mywebpage.php

NOTE: angle brackets are not allowed in descriptions, but a "less than" symbol should be before the "?" in the following code:

?php
echo "Today is " . date('Y-m-d H:i:s');

For more tech tips, how-tos, guides, app lists, game lists and all things tech, hit the ‘Subscribe’ button or check out our other videos: https://www.youtube.com/channel/UC5HhHXVDrGb30QwN0FTXBJw

Or visit our website at: https://www.maketecheasier.com/







Tags:
how to
mte
maketecheasier
tech tips
raspberry pi web server
raspberry pi 4 web server
raspberry pi web server tutorial
raspberry pi web server gui
turn pi into web server
turn raspberry pi into web server
web server on raspberry pi 4
web server on raspberry pi
web server on raspberry pi 3
install web server on raspberry pi
setting up web server on raspberry pi
setup flash web server on raspberry pi 3