How to make an Nginx Webserver in 7 minutes

Поділитися
Вставка
  • Опубліковано 27 вер 2024

КОМЕНТАРІ • 188

  • @KianBrose
    @KianBrose  3 роки тому +9

    Messed up the resolution on the new outro, was considering delaying the video more until the new one is complete but that would probably take a couple of days, so I apologize if the last 15 seconds of the video bother your ocd xD

    • @dhruvagrawal3856
      @dhruvagrawal3856 3 роки тому +2

      @Kian Brose I think that the quality of your video is really good

  • @ShawnKirk007
    @ShawnKirk007 2 роки тому +14

    WOW! This is the best tutorial I think I've ever watched! Fast... To the point will... and No filler. Awesome!

    • @KianBrose
      @KianBrose  2 роки тому +2

      Ty! messed the sound though

  • @Billiam112
    @Billiam112 3 роки тому +10

    One thing I've always been longing for when it comes to these types of vlds is 1. Using node
    2. Setting up nginx in a secure way to allow outside traffic to it
    3. And, as a final step, how to actually configure to use a self owned domain name and not the public ip.
    Great video nonetheless. 😊👌

    • @KianBrose
      @KianBrose  3 роки тому +1

      I actually have a video about 2 and 3, i never touched nodejs in my life but maybe someday xD

    • @AaronEstebanSEO
      @AaronEstebanSEO 2 роки тому

      I've already hosted a sales page to sell my software before using a Raspberry Pi 4 and my own domain. I built the LAMP stack with it back then, but now I'm more into "NGINX" since it's faster and more secure.

  • @sergeyzinovkin7123
    @sergeyzinovkin7123 2 роки тому +5

    Thank you! Great video! Very informative and without any excess information!

    • @KianBrose
      @KianBrose  2 роки тому

      Np! Glad you liked it!

  • @arvram6103
    @arvram6103 3 роки тому +1

    Nice video. I Always learn something new from your videos! Thnx for great content!

    • @KianBrose
      @KianBrose  3 роки тому

      Ty! Learning something new each vid is the plan xd

  • @papesldjnsjkfjsn
    @papesldjnsjkfjsn 3 роки тому +2

    your videos are fire keep it up

    • @KianBrose
      @KianBrose  3 роки тому +1

      Thanks! Will keep on trying to improve the quality for each new video xD

    • @papesldjnsjkfjsn
      @papesldjnsjkfjsn 3 роки тому +2

      @@KianBrose they are already much better than most of the content i see in youtube

    • @KianBrose
      @KianBrose  3 роки тому +1

      @@papesldjnsjkfjsn To be fair yeah I feel like most programming tutorials are very poorly edited and fail to keep the viewers entertained while remaining educational, hopefully I can fill that void xD

    • @papesldjnsjkfjsn
      @papesldjnsjkfjsn 3 роки тому +1

      @@KianBrose exactly!

  • @Gouki54
    @Gouki54 3 роки тому +1

    ah cool! ca fait longtemps que je l'attendais cette vidéo

    • @KianBrose
      @KianBrose  3 роки тому

      J'éspère que ça ne décèptione pas trop xD

  • @fuujutsushi
    @fuujutsushi 3 роки тому +1

    Tack så mycket Kian, underbara videoinnehåll

  • @kromerdealer8345
    @kromerdealer8345 3 роки тому +1

    Thanks, now i want raspberry pi even more

    • @KianBrose
      @KianBrose  3 роки тому +1

      It will work on anything that you can install linux on xD even an ol' 2010 phone

  • @soalersystem123
    @soalersystem123 Рік тому

    So happy to find your channel ❤

  • @henlein8954
    @henlein8954 Рік тому +1

    i cant connect filezilla to rasberry pi
    Connection attempt failed with "ECONNREFUSED - Connection refused by server".

    • @KianBrose
      @KianBrose  Рік тому

      Open up the ftp port 21 with ufw

  • @dominiquedopera8134
    @dominiquedopera8134 2 роки тому +1

    Very informative. Was the database installed to provide a repository for eventual dynamic content?

    • @KianBrose
      @KianBrose  2 роки тому

      That is correct, if you were to want to use PHP to read, store or work with data on a database everything is set up correctly in order to do that (So for example wordpress)

  • @xyhard8603
    @xyhard8603 3 роки тому +1

    Dude you are absolutly AWESOME! You will continue how to make a webserver? but not in local, in public

    • @KianBrose
      @KianBrose  3 роки тому +1

      Next in line I have
      - How to port forward (should be incredibly short)
      - Domain tutorial (how website names work, www. .com .net etc etc)
      - Wordpress tutorial
      - How to make a custom website

    • @xyhard8603
      @xyhard8603 3 роки тому

      I don t use wordpress i just creating websites by my self, portforward... please explain it (i have almost 2 years of webdev)

    • @KianBrose
      @KianBrose  3 роки тому +1

      @@xyhard8603 Assuming you already have the server done as shown in the tutorial with the website files, you want to know what your public ip address is, then you go to your web browser and type the default gateway of your router, for example 192.168.0.1, enter password, go to port forwarding tab, Forward port 80 for the private ip address of the webserver (in my case the private ip of the raspberry pi), protocols both tcp udp, then you should be able to access the website from your public ip but then again you dont want to get ddosed.
      After port forwarding, buy a domain (recommend domain.com), no need for the "privacy extras", the extension (.com .net .org raelly doesnt matter, just what u like visually and is easy to remember). Create a cloudflare account, go to the dns settings of your newly bought domain, replace name server 1 and 2 by the cloudflare nameservers (they will explain how in account creation)
      Once nameservers are complete, on cloudflare go to the dns tab, add a new A record called @ and the ip address is your public ip address. Go to the ssl tab, check the radio button that says encrypt between browser and cloudflare and tada you now have https certificate fully functional site

    • @xyhard8603
      @xyhard8603 3 роки тому +1

      Dude... I apreciate you! Good luck with your UA-cam Channel and your Carrer! I m still learning, i need to learn sql, php and i want to learn some of python... But what s your future plans?

    • @KianBrose
      @KianBrose  3 роки тому +1

      @@xyhard8603 Mmm hopefully grow the channel enough so I can become the largest entertaining educational channel on the platform I guess?

  • @dhruvagrawal3856
    @dhruvagrawal3856 3 роки тому +1

    You should do a setup tour

    • @KianBrose
      @KianBrose  3 роки тому +1

      It's really nothing special, just a random guy with his phone as a camera, a microphone and a lot of editing

  • @CornellBentley
    @CornellBentley 2 роки тому +1

    who are you and where did they clone you? very smart and well put together material THANK YOU KEEP UP THE GOOD WORK!!!

  • @lucastooker5367
    @lucastooker5367 3 роки тому +2

    Can you please make a video on raspberry pi game bots? I use a raspberry pi and would like to learn how to use python for bots.

    • @KianBrose
      @KianBrose  3 роки тому

      Em I mean i guess you could use it to train neural networks that then bot stuff, otherwise i dont really see a way you can bot with it unless you want to make a web crawler or something

  • @dexter2765
    @dexter2765 3 роки тому +1

    Really good content
    love you

  • @RedaHaskouri
    @RedaHaskouri 3 роки тому +2

    i need to send sms from server ( own server ).. how can do that ?.. i read something like sms gateway .. i dnt know what means that exactly !! can help me brother ! :-(

    • @KianBrose
      @KianBrose  3 роки тому +1

      Actually I don't know that one, I guess you would have to use a sim card somehow, never really thought about it... but for mails you can just use an smtp server

    • @RedaHaskouri
      @RedaHaskouri 3 роки тому +1

      @@KianBrose what i can install for smtp server ? i need to build my own smtp server. so ? :(

    • @KianBrose
      @KianBrose  3 роки тому +1

      @@RedaHaskouri personally never made one, can't say for sure sry, i recommend looking it up on google

    • @RedaHaskouri
      @RedaHaskouri 3 роки тому +1

      @@KianBrose i search in google . but i don't understand exactly how! . anyway thanks for all :-(

    • @strange9847
      @strange9847 3 роки тому

      @@KianBrose you can make videos on smtp server in python. Making own client side and server side in python is really fun.

  • @KomarovPavel-if8ud
    @KomarovPavel-if8ud 2 роки тому

    nice one, Paul Dano. Very good

  • @dhruvagrawal3856
    @dhruvagrawal3856 3 роки тому +1

    Hey Bro your setup Is Very Cool

    • @KianBrose
      @KianBrose  3 роки тому

      Ty! Camera is on a budget xD

  • @hunt_82
    @hunt_82 Рік тому

    Hi dear, thanks for your video, but after minute 03:45 I don't know witch keyboard buttons do you push, please, can you help me?

    • @KianBrose
      @KianBrose  Рік тому

      I had accidentally hit some things on the keyboard that I shouldnt have so it looked a bit weird, you just have to go down with the arrow keys

    • @hunt_82
      @hunt_82 Рік тому

      @@KianBrose Thanks for the quick response but I still can't fix it. I place the cursor on the curly brace, hit ctrl and R but then I can't uncomment because the cursor doesn't move. Can you help me please?

  • @abdelrahmanwissam1414
    @abdelrahmanwissam1414 3 роки тому +1

    I know this is dumb, but does this provide a domain name for the website?

    • @KianBrose
      @KianBrose  3 роки тому +1

      Actually a domain is something entirely different, lets say your ip address is 201.294.28.183
      That would be incredibly difficult for anyone to remember to access the website that that ip is hosting (in this case the host would be yourself and your webserver), so you buy a domain (something.com or .org or . whatever) that just redirects people to that ip address, so it's just made to make ips look pretty

    • @KianBrose
      @KianBrose  3 роки тому +1

      I'll be doing a video on domains shortly after making one about port forwarding which I finished recording today, just gotta edit it

    • @abdelrahmanwissam1414
      @abdelrahmanwissam1414 3 роки тому

      @@KianBrose Ohhhh now i understand, thanks.

  • @lbb2rfarangkiinok
    @lbb2rfarangkiinok 2 роки тому +1

    Raspberry the smallest computer in the world? I don't know how the developers of M^3 would feel about that. Great video, tho!

    • @KianBrose
      @KianBrose  2 роки тому

      Correct, since the raspberry pi is not only a chip, but it has every other component embedded into it as well to make it work as a computer
      Thanks!

    • @lbb2rfarangkiinok
      @lbb2rfarangkiinok 2 роки тому

      @@KianBrose I feel like you mean something else when you say "computer" then. Could you provide me with your definition.

    • @KianBrose
      @KianBrose  2 роки тому

      @@lbb2rfarangkiinok A set of hardware that has been wired together in such a way that an end-user can utilize it to run an operating system

  • @saraswatinautiyal5763
    @saraswatinautiyal5763 3 роки тому +2

    Can you automate chess using python

  • @TheWorthyWubba
    @TheWorthyWubba 3 роки тому +2

    So I tried doing this in Termux ( Terminal Emulator for android w/Linux env ), I'm already finished with the installation and Database part.
    Just wanna ask where did you get the "root /var/www/html;" .
    Also whenever I do the "nano /etc/nginx/sites-available/default" It always says that the directory doesn't exist. So I go to the nginx dir. and make a directory called "sites-available". I then made a file named "default". Is it the right thing to do?
    EDIT: What I mean about the Database part is that I already changed the password for root and can now login using the root. Also, the part where you do "add-apt-repository universe", it doesn't work on the Termux but i guess it isn't that important because I already installed the PHP needed.

    • @KianBrose
      @KianBrose  3 роки тому +1

      Hmm, installing it on android is interesting, if you have access to a linux type shell you can use nginx -t which should print out test results and the location of these files

    • @TheWorthyWubba
      @TheWorthyWubba 3 роки тому +2

      @@KianBrose It's solved now, the nginx has it's own configuration file and I saw the line of code that you editted in their.

    • @KianBrose
      @KianBrose  3 роки тому +1

      @@TheWorthyWubba glad to hear that!

    • @TheWorthyWubba
      @TheWorthyWubba 3 роки тому

      Still not done, I'll update you if it works

    • @TheWorthyWubba
      @TheWorthyWubba 3 роки тому +2

      It worked! All I need to do is port forward the site.

  • @TappedCeiling46
    @TappedCeiling46 3 роки тому +1

    cool, might do this in the future

    • @KianBrose
      @KianBrose  3 роки тому

      Even if it's not a webserver, lots of things you can do with a raspberry pi like a media server

  • @DavidDarnes
    @DavidDarnes Рік тому

    Even though I’ve already gone through these steps this was really helpful to see and understand the steps. Would love a part 2 on how to safely open up that server to the internet 😊
    Edit: Oh here it is ua-cam.com/video/X2WQiTvXK9U/v-deo.htmlsi=gk_IEpY5kJCFQyt2

  • @farang9260
    @farang9260 3 роки тому +1

    oh so it's only for local or can you run a real website on it aimed to be displayed on internet ?

    • @KianBrose
      @KianBrose  3 роки тому +1

      This is actually the first in a series of videos where I show how to make an actual website to be displayed on the internet, so this part was the actual server, next is port forwarding, dns etc

    • @farang9260
      @farang9260 3 роки тому

      @@KianBrose cool can't wait, great content

  • @vizionthing
    @vizionthing 2 роки тому +1

    Should have edited out the Ubuntu repository addition - you clearly state the instructions are for Debian, or at the very least state the Ubuntu part BEFORE demonstrating the instruction - some of use are following along!
    Other than that, altogether an excellent video, I got a Raspberry Pi Zero W set up on the first run. Thank you.

  • @niki-maria
    @niki-maria 3 роки тому +1

    `sudo apt-get upgrade -y` should automatically respond yes while upgrading :)

  • @mimurajam1501
    @mimurajam1501 3 роки тому +2

    nice video

  • @jsamusicsociety
    @jsamusicsociety 3 роки тому +1

    Could you tell me how can I update my IP automatically at google domains?

    • @KianBrose
      @KianBrose  3 роки тому

      It's not possible to do it automatically as far as I'm aware

  • @alexk9513
    @alexk9513 3 роки тому +1

    受益良多, 非常感謝你.

  • @nexenti3107
    @nexenti3107 3 роки тому +1

    why not just transfer files over scp or rsync?

    • @KianBrose
      @KianBrose  3 роки тому +1

      Because this is how websites work

  • @canlucagertz3562
    @canlucagertz3562 Рік тому

    Does that alao work on a thinkcentre?

    • @KianBrose
      @KianBrose  Рік тому

      unsure what that is, but if it can run modern linux yes

  • @0xapi489
    @0xapi489 3 роки тому +1

    Amazing.

  • @just_biraj
    @just_biraj 2 роки тому +1

    How to access phpmyadmin

  • @krissloo143
    @krissloo143 3 роки тому +1

    It's sad you don't post often :(

    • @KianBrose
      @KianBrose  3 роки тому +1

      Ik, having some irl issues rn xD

    • @krissloo143
      @krissloo143 3 роки тому +1

      @@KianBrose Nothing can stop you ma man :)

  • @danielvelkov116
    @danielvelkov116 2 роки тому

    They've really made this as brain dead as possible. Love it

  • @henlein8954
    @henlein8954 Рік тому

    i place html file but nothing yet

  • @Prophes0r
    @Prophes0r 3 роки тому +1

    Pretty clear instructions. Good job.
    Quick pronunciation corrections though.
    'sudo' is pronounced like the words 'sue do' not 'pesudo'.**
    'nginx' is pronounced like 'Engine X'.
    ** su is the Switch User command. But it is most commonly used to change to root, AKA Super User.
    sudo is literally 'su then do' but the user you switch to is root(Super User) so many(most? all?) think of it as 'Super User Do [command]'

    • @KianBrose
      @KianBrose  3 роки тому

      Ty! Yeah I got pretty used to just doing sudo -s

    • @Prophes0r
      @Prophes0r 3 роки тому

      @@KianBrose The Engine X one really threw me.
      In my head I always read it 'N G inks'
      Then I heard a developer talk and literally stopped what I was doing when he pronounced it 'Engine X'. Then I looked at the word and thought "Oh shit! That is WAY better!"

    • @KianBrose
      @KianBrose  3 роки тому

      Yeah, I was told by some friends shortly after release that the way I said it was wrong haha

  • @gijothegamer9299
    @gijothegamer9299 3 роки тому +1

    How to install aircrack-ng in phone using termux and using that how to hack Wi-Fi password please make a video please please 😭😭

  • @mikeeotool2677
    @mikeeotool2677 2 роки тому +2

    Kian Brose speech speed sleep = 1000 for each phrase on your tutorials, so you don't speak to fast !

  • @shreeshind8388
    @shreeshind8388 3 роки тому +1

    I think u can make a 3d game bot😋😋😊

    • @KianBrose
      @KianBrose  3 роки тому +1

      mmmm not sure how to make those yet, but could look into it for a future video

    • @shreeshind8388
      @shreeshind8388 3 роки тому

      @@KianBrose OK bro :-)

  • @aog3962
    @aog3962 3 роки тому +3

    First

    • @KianBrose
      @KianBrose  3 роки тому +1

      Wah that was fast xDD

    • @papesldjnsjkfjsn
      @papesldjnsjkfjsn 3 роки тому

      no one cares

    • @aog3962
      @aog3962 3 роки тому

      @@papesldjnsjkfjsn :(

    • @papesldjnsjkfjsn
      @papesldjnsjkfjsn 3 роки тому

      @@aog3962 lol but it's anoying

    • @aog3962
      @aog3962 3 роки тому

      @@papesldjnsjkfjsn i mean if it's annoying why would you answer?

  • @HoundSec
    @HoundSec Рік тому

    It's pronounced N-gin-X by the way.

  • @thepythoncodez
    @thepythoncodez Рік тому

    nginx is pronounced Engine X

  • @gunterkook3659
    @gunterkook3659 2 роки тому +1

    filezilla error the web server
    My Public IPv4 domain show website
    the ip 192.168.1.etc show site no available
    the file zilla error are
    Connection attempt failed with "ECONNREFUSED - Connection refused by server".
    Response: 503 Failure of data connection.

    • @KianBrose
      @KianBrose  2 роки тому

      Hm, you probably do not have FTP configured on the server which allows filezilla to connect to it OR have a firewall issue

    • @gunterkook3659
      @gunterkook3659 2 роки тому

      @@KianBrose i already disable the firewall on the router and windows 10 do you know the commands on debian or a video or article ?

    • @gunterkook3659
      @gunterkook3659 2 роки тому

      @@KianBrose some say that is issue with port fowarding

    • @KianBrose
      @KianBrose  2 роки тому

      @@gunterkook3659 hm, it is possible that you have port 21/22 blocked on the debian device, you could try your luck with the UFW firewall

  • @grogges
    @grogges 3 роки тому +6

    love your vids i hope your channel blows up

    • @KianBrose
      @KianBrose  3 роки тому +2

      Thanks! I hope so as well

  • @lookeper2
    @lookeper2 3 роки тому +13

    Great tutorial, but how you pronounced nginx tilted me so hard. EngineX😂

    • @KianBrose
      @KianBrose  3 роки тому +1

      Haha I like calling nginks since it just rolls of the tongue faster, been told it's wrong before, but it seems I'm a bit too used to calling it enginks xD

    • @mark1359
      @mark1359 3 роки тому

      Same

    • @entx8491
      @entx8491 Рік тому

      ​@@KianBrosestop calling it that then, I almost closed the tab thinking you have no idea what you're talking about lol

  • @xifias4674
    @xifias4674 3 роки тому +4

    Now I want a rasperry pi. Great video!

    • @KianBrose
      @KianBrose  3 роки тому +3

      It's also doable from quite literally any device whatsoever, even possible on old wii's and nintendo's as long as you manage to install linux on it haha

  • @ValorantNether
    @ValorantNether 3 роки тому +3

    Nice

    • @KianBrose
      @KianBrose  3 роки тому +1

      ua-cam.com/video/a8c5wmeOL9o/v-deo.html&ab_channel=Dylancliff111

  • @ChargedPulsar
    @ChargedPulsar 2 роки тому +1

    Constantly changing the camera, showing irrelevant items, annoying music in the background. Really? In a tech video.. Someone confused Minecraft with IT.

    • @KianBrose
      @KianBrose  2 роки тому

      Apologies for the free tutorial

  • @trtlphnx
    @trtlphnx 3 роки тому +3

    Thanks for All the Information, It is Incredibly Helpful!!!!

    • @KianBrose
      @KianBrose  3 роки тому +1

      Glad you liked it! Ty for watching ^^

  • @AaronEstebanSEO
    @AaronEstebanSEO 2 роки тому +1

    You're pronouncing "NGINX" incorrectly. It's pronounced "engine x".

    • @KianBrose
      @KianBrose  2 роки тому +1

      Yep I didn't know haha

    • @AaronEstebanSEO
      @AaronEstebanSEO 2 роки тому

      @@KianBrose yeah, I've built web servers and email servers with both LAMP & LEMP stacks on my Raspberry Pi 4, that's why I know how to pronounce it - the experience. Also, NGINX is better than Apache in terms of speed and security.

    • @KianBrose
      @KianBrose  2 роки тому

      Yeah I think I mentioned nginx being far better in some part of the vid. Also could you elaborate on how you create email servers? I have always tried looking into creating a mail server for my domains for custom mails but failed to do so

  • @imadafzal3368
    @imadafzal3368 3 роки тому +1

    hey, guess who I am plus I love your vid Kain.

    • @KianBrose
      @KianBrose  3 роки тому

      Hi Esc('y know)! Thanks!

  • @developersdiary9513
    @developersdiary9513 3 роки тому +1

    Can anyone shed some lights on me of what I should know in order to host 10 websites and how much traffic my raspberry pi web server can handle?

    • @KianBrose
      @KianBrose  3 роки тому

      Realistically speaking, about 5000 people per second, and if you have more than 500 per second you might as well get a real server

    • @KianBrose
      @KianBrose  3 роки тому

      I recommend reading this raspberrypi.stackexchange.com/questions/86019/roughly-how-much-users-could-handle-a-raspberry-pi3b-as-server-for-standard-wor

  • @gijothegamer9299
    @gijothegamer9299 3 роки тому +1

    Hacking Wi-Fi password aircrack ng video plz

    • @KianBrose
      @KianBrose  3 роки тому

      Lol that’s pretty simple, planned in the future as well

    • @subhanshareef939
      @subhanshareef939 3 роки тому +1

      @@KianBrose We all know its simple but we still want it from you :)

  • @ITTOMC
    @ITTOMC 3 роки тому +2

    Excellent!

  • @viq234
    @viq234 3 роки тому +1

    I was going to look for videos about this. Thanks

  • @E-dart
    @E-dart Рік тому

    It gives a 403 error

    • @KianBrose
      @KianBrose  Рік тому

      odd, did you perhaps try to access a file in the webserver on (I think) /var/www/http that doesn't exist? this was made a while ago

  • @chi11estpanda
    @chi11estpanda 10 місяців тому

    03:56 Conceptually, instead of uncommenting then deleting you could have just left it commented right? or was that just to simplify the tutorial and save a few bytes of data?
    Also, for 06:29 Would there be any security concerns with giving pi ownership of /var/www/html as opposed to only giving it write permissions instead if say you do end up opening the server up to the public with port forwarding or not really?

    • @KianBrose
      @KianBrose  10 місяців тому

      3:56 well yes, honestly its just a habit to remove things I know I won't use but it wouldn't change anything to leave it as is

    • @KianBrose
      @KianBrose  10 місяців тому

      6:29 I'm honestly not very well versed with privilege escalation exploits but just from the back of my mind, if someone hacked into the server and had access to pi they would have access to anything anyways as it's a root user
      Otherwise I'm not really sure

  • @NoName-fm6ew
    @NoName-fm6ew 3 роки тому +1

    im waiting for new vids :3

    • @KianBrose
      @KianBrose  3 роки тому +1

      I'll release one as soon as I'm finished with a test the 15th

  • @henlein8954
    @henlein8954 Рік тому

    kian my website stays showing php

  • @hlaxfors
    @hlaxfors 3 роки тому +1

    Very useful!

  • @HoundSec
    @HoundSec Рік тому

    Clean precise and informative!

  • @tars3842
    @tars3842 3 роки тому +2

    Amazing work