DIY Linux Webserver from Start to Finish Hosted by Linode

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey guys don here from nova spare tech and welcome back to the channel and today we're going to be doing a full start to finish diy linux web server so let's get started [Music] now everything we talk about will be linked down in the description below and everything that i'm trying to do here today is a diy full web hosting server complete with control panel everything for you to manage your domains as well as emails and databases basically everything to be a full web hosting provider especially if you want to be able to host your own websites or host websites for your friends or family and emails and everything this is the way to go now we will be doing this from scratch basically a brand new linux server which is provided by linode and i do have a promotional code for 100 credit if you want to follow along we're also going to be using a software called hastia cp or hasties control panel if i'm i don't know if i'm saying that correctly but i hope so and we will also be providing the domain through onlydomains.com now you could use any domain you could use godaddy you could use google if you want but i've just been using only domain so that's what we're going to be using today now this is my recent theming of my desktop if you want to see that video i will leave a link on the top left basically it's dracula theme you could just probably search it on my channel looks really good i really do like the purple style as well as the wallpaper that actually one of my discord members provided because this is a really good wallpaper for this you can actually just go to lino.com novaspirit and it will actually bring you to this page where you can actually get the hundred dollar credit now i already logged in and this is a fresh um login i don't have any nodes here or anything so i'm gonna create one from scratch so what we're gonna do is uh create and i'm going to choose you could do wn-10 debian 9 the latest version of ubuntu actually i will be choosing the long-term support one because that's where the software will support this and that's what i'm going to be doing as far as the region goes anywhere near you i'm going to choose new work and we're going to use the cheapest one there so it's going to be five dollars a month if i keep running this and you can name the instance if you want and the root password could be anything you need and that is about it create node now this doesn't take too long to create it's actually going to spin up a full instance uh it's actually providing new ip addresses tons of stuff so this is what i'm going to be doing right now now you see this ip address while i'm waiting for this to provision we could also go and purchase a domain now i already purchased this domain today actually just now called ai me this now i'm interested in getting into ai and i am going to be using this domain probably for something else in the future so i just decided to buy it now and what you want to do is go into your only domain name server edit record zones and change all these ip addresses to your server ip so here i will actually paste this save that and go down the list now we do need to change this this is originally should say mail i think you just have to change it over to webmail because that's what we're going to be using um it's only a subdomain that's why it's called webmail same thing with www that's like a subdomain we're also going to change this as well and then we'll leave this if this needs to be changed changes as well to webmail.aimedthis.com once we're done with this we should be able to head back and you see now it's running so it's it's really quick to get this up and going now what i'm going to do is launch the console it should still be booting because it's see it's still booting because we just literally put this together now the next step we need to do is head over to hastier control panel or hestia let me know if i'm saying that correctly because i think i pronounce it correctly now there are a few steps that you can follow which is this and then you can run the install or if you want to perform an unintended install you could do this as well but this is what we're going to be doing you don't really need to know the full back end of linux this is basically what you're going to be controlling your web server on this open source linux web server control panel all right let's log in and in here i am going to type the password that we made before should be good to go and since this is freshly installed i should have most of the latest package what we need to do is just use this since you can't copy and paste you really need to just write it so wget http raw github user content.com cp sdscp slash release install hst install dot sh okay there you go if i list structure you should see that install file and all i have to do is bash and type that in and that is it it's going to start checking for dependencies and install stuff that it needs to install or remove stuff that is conflicting with the packages now this whole process of the install takes roughly about 20 minutes or so so if you got that time especially on this server which i'm only using one core it takes about 20 minutes now you see it found conflicting packages it's going to remove it and we know they're not using ufw because it's using ip tables so that's why it's going to remove it now this is what it does basically install the following components web server php dns mail server mariodb a ton of stuff now i'm going to hit yes and type in the admin email fqdn hostname i don't have a fully qualified domain name host right now this is where you would put your webserverhosting.com whatever so if you have one already that's where you would put it in i'm going to hit enter let that install and i'm going to let that go currently updating installing packages again this is the process where it takes maybe 15-20 minutes but don't reboot it yet it's going to ask you to reboot it but don't reboot it i'm going to show you something okay we are back and everything is all done and you see it just flashes the screen but here's the thing this is the password now if you just rebooted the computer you would have missed this and had to reinstall the whole thing so remember to keep that password safe by you what i'm going to be using is a text editor and in here since i think i can copy and paste it so let's see yeah there you go i could actually copy and paste over here um i am going to leave that and do you want to repeat yes i'm going to reboot the server now minimize that for now and give this a minute i'm going to have to refresh that page i actually don't really need to go back in because i'm done so the ip address it gave me was this okay and what uh the port that i got to go to is 8083 so i'm gonna wait for that to boot up let's see did it boot yet all right here we go everything is freshly rebooted i'm gonna go over to the ip address and type in 8083 all right we have something that we hit i'm gonna advance accept the risk here is the control panel so i'm gonna do admin next the password actually that was the ip address so i gotta grab the password from here log in and the first thing you should do is actually change that password i'm never going to remember but here it is the console itself so you have your users where you can actually have multiple people admin this device or not even you know give user access this is web where you would stick all your domain names in right now we just have that local host that we did uh dns mail this is where you would actually align all your mail addresses to databases so if you're creating a wordpress or something like that you would create a database for it uh crime tab so you have jobs like task scheduler and then backups and then on top you have all these other options where you could set your username password uh you could even upload files if you wanted to going into here would actually give you like a little ftp kind of thing that you can upload files to then you have your logs statistics and everything else so if you want the first thing i would actually do other than change your password say the second thing is to change this so it allows ssh from any ip address i would change this to your public ip address from your machine so this way no other people could break into the ssh so i would definitely change that around possibly even change this 8083 to only you so nobody else can access it so there are a couple of things that you should lock down just so uh people can't brute force or whatever there is a way to actually change this and add two-factor authentication to this login but that's that's something you would have to look up now to get this aligned what we need to do is since we have this uh where is it oh my user session expired but since we have the domain already pointed to this ip address what we need to do is add the web domain and for us it's called a i need this.com and here we could actually do everything we want to enable mail advanced option also if you want to ssl enable ssl and use let's encrypt because let's encrypt is free and have all these things if you want an ftp account you could add that in as well username and password for the ftp so there's a lot of things you could set up for this and i would definitely set up a ftp if you're gonna upload files like wordpress and stuff it does also warn you about creating a standard user and not to use admin um i would recommend that as well but i'm just showing you this for now so now that we added the domain i'm gonna hit back and you're gonna see that this was added now if i was to go into aimeethis.com see now it goes to this website called we're working on it which is actually hosted by our server to double check that i can go into files uh go into web going to add me this hey i me this public html and you see an index page over here i am actually going to change this to say please check back soon nova spirit says hi save and let's go back to our web hosting so now if i do refresh novaspirit says hi you see that that's the little thing that i changed around and if i want to check https traffic it should work https yeah there you go uh the search still got to be aligned to it but we'll figure that out later now if you want to get mail because we now have a domain all i have to do is just add a user so i could click on here add mail account it could be anything so it'll be dawn at hey i need this generate the password so it's going to be pass word something like that will work uh you can do advanced options and stuff like that but this is your url you see how it says webmail.aimedthis.com that's what i had to change in the domains only domains so if i was to hit save everything's all set i could go to ai me this and in here i could do dawn at ai me this dot com and the password is password there we have it our own little email i know that this works i could test it but i'm not gonna go drag you through that but yeah it does work you could actually send it to your the temporary email address or something like that to test it out but that is basically it now you have your own domain you can manage everything through here you could enable disable https um you could do basically whatever you want the admin console will still be on this weird ip address that you have until you align it to a domain name but for now we now could manage other domains so if you purchase another domain from only domains anything else you could just attach it to this and now this will manage everything especially like the emails you can figure out how much space you want to give it uh the dns if you want to do subdomains and stuff like that you have databases for the web server if you wanted to create something like word press stuff you know you just make a username and everything else so it'll have all the things that you need to properly maintain manage and host web server well that is it for me i hope you guys enjoyed this video this is basically a full way of getting your web server from start to finish and i mean there's a little bit of details here and there that uh you could probably do some settings to the firewall lock it down a little bit stuff like that but ultimately that's it now if you guys like content like this let me know down in the comments below because there's a lot of stuff that is like a full tutorial that i would like to do like this like basically creating your own web server is something that i'd like to do but yeah let me know down in the comments below and i do want to thank linode for providing me the server so i could do the types of videos like this and if you guys have any questions about this leave it down in the comments below if you guys are new to this channel consider subscribing also hit that bell notification icon so you know when the next video is going to be out and i do need a new outro in a sense so i've been thinking about it anyway if you guys have any suggestions for that let me know down in the comments below thanks for watching
Info
Channel: Novaspirit Tech
Views: 9,452
Rating: undefined out of 5
Keywords: novaspirit, tech, linux web, linux web server, web server, linux, linode, hestia control panel, hestia, onlydomains, web host, how to run your own website, website, web hosting, control panel, email, mail server, dns server, domain
Id: H8K-Rg_7Tbo
Channel Id: undefined
Length: 13min 35sec (815 seconds)
Published: Fri May 07 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.