How to host own website from home? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How to host own website from home?

Hello everyone, I'm curious on how to host a site on a home server. In detail on how to build (which components) and configure a server (site will be a simple portfolio). Do you know a guide about it? Did anyone tried? Which skills I would need to make it?

5th Dec 2019, 2:05 PM
maccio_capatonda
maccio_capatonda - avatar
14 Answers
+ 3
First of all must know what IP give to you your provider. He was be white and static (global). And second question: you ready keep your computer running 24/7?
5th Dec 2019, 2:44 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 3
you will need to protect directly your home computer, dedicated to the server. since the use of the site implies the opening of the so-called ports. this is by analogy as the doors of the house, designed to use some necessary services. these are the ports you have to protect.
5th Dec 2019, 4:12 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 3
after your provider will give you an IP (or maybe you already have it) you have to install a web server on your computer. what is your operating system? if your site needs a database, then you will still need to deliver the database, database service, php server... all this will need to be configured, protected from hacker attacks, then maintain the entire operating system, periodically update it, look for and close vulnerabilities in it... do you still want to do this? desire is not lost?
5th Dec 2019, 4:19 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 3
If it is a simple html/css project look at using github pages. If you need something more you can look to services like heroku. Setting up a server at home is not impossible but there are a lot of things to consider and a steep learning curve. Maybe look at getting a raspberry pi which is linux based and can be converted in to a webserver quite easily. If you have an old pc/laptop install linux on there and try to get things set up.
6th Dec 2019, 6:04 AM
Don Shine
+ 2
your Internet provider must provide you with an external, static IP address. this means that its value will not change over time (for example, after restarting your router) and this address will be global (i.e. will be visible to the entire Internet). find out these questions first. be prepared for attacks and hacks of your site from the outside. you will need to be able to protect it
5th Dec 2019, 3:54 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 2
these webservers are based on Linux. it is desirable for you to allocate for this purpose the reliable computer in the form of the system unit. laptop is not suitable (except for the first time). provide emergency power and cooling. let the temperature in this room does not rise above 22 degrees Celsius. the room should be clean, clean it regularly. if there is no such special room, buy a computer Cabinet with cooling
5th Dec 2019, 4:51 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 2
If you want to have a hosted website accessible from anywhere in the world, You can do it for free -install xampp -Set up a local host server with xampp -Install ngrok -use the ngrok software to create a tunnel to the internet -get a free domain at https://freenom.com Boom u r good to go
6th Dec 2019, 11:10 PM
Dace [Super Inactive| Challenge=Maybe]
Dace [Super Inactive| Challenge=Maybe] - avatar
0
What do you mean with "white and static? For the second question I am prepared :D
5th Dec 2019, 3:50 PM
maccio_capatonda
maccio_capatonda - avatar
0
Thank you for your answer is the protection from attacks manageable for just a static site or the all idea needs a really big knowledge?
5th Dec 2019, 4:07 PM
maccio_capatonda
maccio_capatonda - avatar
0
I'm attracted on the challenge and on how much knowledge I would get on the way, just I don't know if I could make it because I don't have any knowledge on how to setup a server (that would be the main focus of all the experience)
5th Dec 2019, 4:39 PM
maccio_capatonda
maccio_capatonda - avatar
0
I think you got it. See instructions on YouTube. setting up the server is not so difficult, it is more difficult to protect it and keep it up to date. but you will gain precious experience. maybe you will become a system administrator in the future. good luck!
5th Dec 2019, 4:46 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
0
I actually tried to host my own website and get it accessible from anywhere at no cost at all... It was fun. But not best to use your personal computer, Your computer has to be connected to the internet, the ngrok tunnel must be activated, the xampp server must be activated and your computer has to be on
6th Dec 2019, 11:17 PM
Dace [Super Inactive| Challenge=Maybe]
Dace [Super Inactive| Challenge=Maybe] - avatar
0
An alternative to the Xampp is writing a python script for a webserver using flask You can also make a local webserver with javascript
6th Dec 2019, 11:18 PM
Dace [Super Inactive| Challenge=Maybe]
Dace [Super Inactive| Challenge=Maybe] - avatar
0
/* From providers */ 1) Amazon web Servers (1 year free tier of EC2 instance) 2) Digital Ocean ($5 per month) 3) Google cloud platform (1 year free) /* From home*/ // For static site www.github.com is the best // For dynamic site a) Download and install ubuntu server in your computer b) Assign your computer a static IP address c) Move your site to /var/www d) Get free domain name from freenom.com e) Free SSL certificate from letsencrypt.org f) Free professional email from yandex
7th Dec 2019, 3:08 AM
onekpsc