Turn your Raspberry Pi into a Web Server

Поделиться
HTML-код
  • Опубликовано: 22 июл 2024
  • 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: www.raspberrypi.org/downloads/
    Etcher: 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: / @maketecheasier
    Or visit our website at: www.maketecheasier.com/
  • ХоббиХобби

Комментарии • 81

  • @jim7smith
    @jim7smith 3 года назад +187

    Some points that got you a new subscriber quickly:
    1. No annoying background music
    2. Even though the terminal screen was low resolution, you compensated by putting a large easy to see command outside the terminal window.
    3. You actually listed all of the code snippets in the description on the youtube page
    4. You were concise and to the point on all instructions and their purpose and results.
    5. You obviously were familiar with everything you demonstrated and did not ummm and hmmm and struggle for what you said.
    6. Excellent editing or an amazing single take!

    • @akhmedbejli8657
      @akhmedbejli8657 3 года назад +2

      Well, I can only agree with it

    • @mattiasstahuliak9252
      @mattiasstahuliak9252 3 года назад +3

      100% agree. got another sub just there

    • @LL-ue3ek
      @LL-ue3ek Год назад +1

      you can expand to full screen mode with 1080p resolution, and you will see the small black screen very clearly.

    • @AndevOG
      @AndevOG 7 месяцев назад +1

      agreed

  • @SgtWTFOver
    @SgtWTFOver 3 года назад +4

    My man! After watching too many videos to admit, I come across this LEGEND. You got an instant subscriber.

  • @drewdevinproductions5173
    @drewdevinproductions5173 3 года назад +7

    This is what every youtuber has to be like, just straight to the point!

  • @juliencollet1208
    @juliencollet1208 4 года назад +18

    I have no idea how you don’t have more subscribers. This is great! Thank you!

    • @Maketecheasier
      @Maketecheasier  4 года назад +4

      We're working on it!

    • @alexjung1425
      @alexjung1425 3 года назад +1

      @@Maketecheasier hahaha this definately worked out

  • @shemmac4700
    @shemmac4700 3 месяца назад

    Great video. It got it working for me - where a lot of other tutorials had not. Thanks

  • @felixhesa9962
    @felixhesa9962 4 года назад +23

    Your videos are so well made, informative and clear! Thank you!

    • @RicyStuff
      @RicyStuff 3 года назад +1

      He is just reading an online tutorial into his microphone. You can see in one scene, that he has a tab open called "How to turn you Raspberry Pi into..." (The text is cut off there, because of the tab-length.

  • @retrofutur1st
    @retrofutur1st 3 года назад +1

    instantly subscribed, great explanation! thank you so much

  • @victorrodas4357
    @victorrodas4357 3 года назад +11

    Simply Great tutorial. No BS at all. You've got a new subscriber. Thank you

  • @Avidiy
    @Avidiy Год назад +1

    Wow it actually works. I just can believe it

  • @frankydebrouwer
    @frankydebrouwer Год назад +1

    It worked very well. Thanks

  • @PhG1961
    @PhG1961 2 года назад +1

    Very well explained !

  • @blazinthat7439
    @blazinthat7439 3 года назад +1

    So how much ram should I have, i notice that wasnt mentioned.

  • @greatrat6645
    @greatrat6645 3 года назад +3

    i literally spent several weeks looking for a video like this. I wish i could have found this sooner

  • @sloxdlox8980
    @sloxdlox8980 3 года назад +6

    Where is the link for the instructions on creating the dynamic IP?

  • @tarashurtovenko4715
    @tarashurtovenko4715 2 года назад +1

    great project thank you!

  • @simplegametutorials1341
    @simplegametutorials1341 2 года назад +1

    How do you configure if you have pinhole installed??

  • @dancingkitchen4266
    @dancingkitchen4266 2 года назад +1

    where is info about setting dynamic i/p to make it accessible from internet?

  • @joekustek2623
    @joekustek2623 2 месяца назад +1

    I know this is an older video but if I were to show someone how to build a pi webserver here are some points that this should have included. First off there was no need to install the desktop version of the os. The lite version with SSH is all you need. Some more tips for someone wanting to create a pi web server. The permissions were not set correctly. Should have been set to www-data. Now one would probably be using SFTP to access the web files. So I would recomend first start setting up virtual hosts so you can work with multiple websites. Also should install and allow permission with setfacl. Another thing is installing php and mysql along with phpmyadmin. Basically this video tutorial was a very basic but not correct way of setting up a pi webserver. I'm thinking about doing one if folks out there want to learn how to make a real pi webserver that actually works like it would on a professional environment. Let me know if anyone is interested.

  • @aliali-lm3zn
    @aliali-lm3zn 2 года назад +4

    very helpful, thx. Can you do a video about how to connect to the same server but from internet using smart phones PCs ... ?? I mean from outside the local network without using port forwarding (not secure and most of the ISPs block it)

  • @tazo1jd
    @tazo1jd 3 года назад +2

    i followed your instructions to the T . and i don't get my web page ???????

  • @martinndirangu2844
    @martinndirangu2844 4 года назад +3

    Damn...what a teacher...🔥🔥🔥💯💯clear & simple

  • @scottcarney901
    @scottcarney901 3 года назад +1

    make tech easier eh? Yup, sure did. Thanks! that was easy :)

  • @larrylarry1368
    @larrylarry1368 3 года назад +1

    Will a Raspberry Pi 4 with 4gb ram good enough?

  • @ProtoCodersPoint
    @ProtoCodersPoint 3 года назад +2

    how to connect raspberry pi with domain for web page serving

  • @Rarugalj
    @Rarugalj 2 года назад +1

    I can use this web server as a game server for Project Zomboid?

  • @runicskaiser8942
    @runicskaiser8942 3 года назад +1

    would this work on a raspberry pi w zero?

  • @letsgetto1millwithoutvids
    @letsgetto1millwithoutvids Год назад +1

    How to make it host a live server and display it on a screen from a pi. Just as iF I would use GitHub pages and use the pi to access the page and display it on a screen how would I host it and access display it on a screen from the pi. I don't need anything else to access the site. The site will have html files, Js files and css files

  • @yv6eda
    @yv6eda 4 года назад +2

    Nice & smooth, thanks!

  • @ownalicous1
    @ownalicous1 3 года назад +2

    is this good for raspberry pi 3?

  • @therealrockguy100
    @therealrockguy100 3 года назад +2

    Very easy set up thank you. I screwed up and enabled wifi on my raspberry pi 4 so it was getting two ips, one from the lan and one from the wlan. This prevented me from accessing the initial apache webpage. Once I disabled the wlan I could access the webpage via the lan ip.

  • @phoenix4220
    @phoenix4220 Год назад +1

    i got erorr installing apache2 .help

  • @vinnyfrancis24
    @vinnyfrancis24 2 года назад +1

    Can i host an Android application in Apache web server?

  • @chizzlemo3094
    @chizzlemo3094 4 года назад +3

    but this is only an internal IP??

  • @vergiltheapprochestorm2365
    @vergiltheapprochestorm2365 2 месяца назад

    Does anyone know a video for dabian lite with no graphic interface

  • @riversiderocks
    @riversiderocks 4 года назад +5

    Good video, thanks!

  • @afghanman
    @afghanman 11 месяцев назад

    How to make it publicly available and attach a domain name to it

  • @Mechx7gaming
    @Mechx7gaming 2 года назад +1

    I can't show my jpg file in my web server

  • @laIlavaraz
    @laIlavaraz 3 года назад +1

    Informative

  • @cjlowe1650
    @cjlowe1650 2 года назад +1

    Is port forwarding safe?????????

  • @brendacedillo5506
    @brendacedillo5506 2 года назад +1

    I want someone on the outside to access it tho

  • @badgerman6666
    @badgerman6666 5 месяцев назад

    Can I use this to host discord bots?

  • @AndevOG
    @AndevOG 7 месяцев назад

    useful!

  • @DRAGUNOV1902
    @DRAGUNOV1902 3 года назад +1

    I did this untill installing apache, it gave me test page on local network, but then i turned raspberry pi off and now it doesnt wanna show anything on display. Is there some config file i can use or...?

    • @spoof727
      @spoof727 2 года назад +2

      the raspberry pi is hosting the server, if it is off, the server will be offline

  • @tombrandis2866
    @tombrandis2866 Год назад +2

    Would a 1GB RAM pi work to set up a simple website? Or do I need a higher powered one.

    • @kgbfromwish
      @kgbfromwish 10 месяцев назад +1

      its enough for a simple website, my really simple website work on my rpi zero w with 512mb ram, (384mb free)

  • @Raxsephon
    @Raxsephon 3 года назад +2

    Nice tutorial, thanks but how about the security? how to make a secure web server / wordpress in Raspberry Pi 4?
    Oh! Another question, it is possible to use my Raspberry as a webserver/wordpress and Pi-hole at the same time, I hope I can have this tiny wonder doing both things?

  • @marylinehappy8504
    @marylinehappy8504 4 года назад +1

    I’m using Mac and I’m having trouble locating my Pi folder , could anyone help ?

    • @BracketProto
      @BracketProto 3 года назад +2

      thats your issue, your using a mac, not a raspberry pi.

  • @johnsowerby6061
    @johnsowerby6061 3 года назад +3

    @MakeTechEasier Your videos are so well made, Thank you. Can I put a hard drive on my internal network, so that anyone connected on the internet can connect and view the pictures on the hard drive, again thank you.

  • @dem2_447
    @dem2_447 3 года назад +4

    Would it be free to host

  • @edbertkhovey
    @edbertkhovey 3 года назад

    Apache web server is vulnerable to slow loris attack no?

    • @kurade1096
      @kurade1096 3 года назад +1

      do you have a hacker in your household connected to your wifi?

    • @edbertkhovey
      @edbertkhovey 3 года назад

      @@kurade1096 nah, but if you deploy it then hackers might DDOS it right?

  • @lefablabdequoy8301
    @lefablabdequoy8301 2 года назад +1

    petit projet perso de serveur APACHE RPI pour station meteo ARDUINO : ruclips.net/video/4vGV18UcRBk/видео.html

  • @marylinehappy8504
    @marylinehappy8504 4 года назад

    I did it but the time displayed is 5 hours ahead of my actual time ( newyork gmt time )

    • @kimmohito
      @kimmohito 3 года назад +1

      that one you can try add
      date_default_timezone_set('America/New_York');
      before date();

  • @BaronVonBiffo
    @BaronVonBiffo 3 года назад +1

    I almost abandoned the video because of the bloody awful racket in the background for the first minute.

  • @theanswer1993
    @theanswer1993 4 года назад +3

    Doesn't work if you're not on the same network

    • @lucifersinferno3078
      @lucifersinferno3078 3 года назад

      I have the same problem.
      I don't know how to make a host out of a localhost.

    • @theanswerga
      @theanswerga 3 года назад +1

      @@lucifersinferno3078 use ddns or static ip and expose a port on your router

    • @jonah1077
      @jonah1077 3 года назад +2

      Gregor A That’s kinda the point of a local web server

    • @mjs2016
      @mjs2016 3 года назад

      Greg, a local webserver is supposed to be used within your network, however if you're running something like an email server or file sharing server you may want to use ddns

    • @kurade1096
      @kurade1096 3 года назад

      if you want a website to go truly public you'll have to register a domain name (i'd advise you to also migrate the entire website to be hosted on a generally stronger machine)

  • @cgme7076
    @cgme7076 3 года назад +3

    These things are so awesome.
    I liked my Arduino Uno but Raspberry Pis knock them out of the water.

  • @ddystopia8091
    @ddystopia8091 2 года назад +1

    192, mmm

  • @harpermartin7813
    @harpermartin7813 2 года назад +3

    Jesus is King! If you do not know Jesus as Savior please pray, “ Jesus save me. At this moment I choose to have faith that You gave Your life for me and rose from the dead. Doing this You defeated death, even though it meant You had to die. You surrendered Your life for me, so I chose to surrender my life to You. Forgive me Jesus, my God. Amen.”
    Jesus loves you so much. Please accept His love. I encourage you to read the Bible and pray.
    “For God so loved the world that he gave his one and only begotten Son into this world, that whoever believes that in him shall not perish but have eternal life.”
    John 3:16
    🙏❤️🙏
    Jesus is enough!
    Again I tell you, Jesus loves you!
    God believes in you more than you believe in yourself! Trust Him! Thank Him! ❤️🙏

  • @-blackcat-4749
    @-blackcat-4749 Год назад

    The mentioned before 🔓 run-of-the-mill event. A commonplace event

  • @anurag9385
    @anurag9385 3 года назад +1

    so i can access the same site with the ip address on any device in my wifi range ????

    • @lucapohl-angel4618
      @lucapohl-angel4618 3 года назад +1

      yes
      if you want to acess it outside your network LAN, you need to set up the dynamic ip adress