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?
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.
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?
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.
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
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
If you want to have a hosted website accessible from anywhere in the world, You can do it for free
-Set up a local host server with xampp
-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
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)
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!
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
/* 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