How to make an Nginx Webserver in 7 minutes

preview_player
Показать описание
In this tutorial you will learn how to make an nginx webserver in under 7 minutes! I cover the basics on what a webserver is, how it works and how to make one! You do not need expensive equipment to do this as a simple Raspberry Pi like the one I used (RPI 4B 4gb ram) will work.

The best operating system for webservers like these ones (my personal opinion) is debian. If you know a bit about raspberry pi's you'll know that the operating system I actually used is Raspberry pi OS lite, which is pretty much debian but made for raspberry pi's (You can notice this because my username is pi, if you use debian the default username should be root).

Anyways, here are the timestamps and commands I used in the video and the commands:

0:00 - Introduction
0:18 - Hardware
0:28 - Operating system
0:57 - Initial setup

sudo apt-get update
sudo apt-get upgrade

sudo apt install nginx

ip a

1:54 - Installing a database

sudo apt install mysql-server
or
sudo apt install mariadb-server

sudo mysql_secure_installation

2:47 - PHP installation
sudo add-apt-repository universe
(Add apt repository is for ubuntu users only)

sudo apt install php-fpm php-mysql

sudo nano /etc/nginx/sites-available/default

nginx -t

4:20 - Testing everything works

cd /var/www/html/
(Remember to add angled bracket before php, youtube description does not let me add it)
?php
phpinfo();

5:14 - Drag and dropping files with filezilla into the server

Try port 21 if port 22 does not work
Рекомендации по теме
Комментарии
Автор

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

KianBrose
Автор

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

ShawnKirk
Автор

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

sergeyzinovkin
Автор

love your vids i hope your channel blows up

grogges
Автор

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

arvram
Автор

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

trtlphnx
Автор

Now I want a rasperry pi. Great video!

xifias
Автор

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

Gouki
Автор

I was going to look for videos about this. Thanks

viq
Автор

Tack så mycket Kian, underbara videoinnehåll <3

fuujutsushi
Автор

Thanks, now i want raspberry pi even more

kromerdealer
Автор

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. 😊👌

Billiam
Автор

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

xyhard
Автор

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

dominiquedopera
Автор

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

CornellBentley
Автор

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 😊

DavidDarnes
Автор

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

jsamusicsociety
Автор

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

henlein
Автор

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 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.

TheWorthyWubba
Автор

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?

hunt_