Turn your Raspberry Pi into a Web Server
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/