I recently bought a new PC. Now I still have my old lenovo laptop with 8GB ram, an I5 3510m or so and Windows 10 on it.
My question is whether I can host a simple website on the device. I've hosted something in localhost before, but there was also an extra button in Microsoft Visual Studio.
So I mean a page that has maybe 5 views a day, where only relatives would have access to it.
Is there a program or something?
Yes will work. You can either use Microsoft's IIS or XAMPP, which is based on Apache and also provides a database, etc.
Okay thanks!
With pleasure!
You could install a web server on the laptop that will run your website. The Apache web server including database and a few other applications are available as a program package with the name https://www.apachefriends.org/de/index.html.
In any case, change the standard passwords here.
You would then have to set up port sharing in the router so that the website can also be accessed from outside the local network.
Since your public IP address usually changes regularly, the use of a DynDNS service is recommended.
What do you mean should i change the passwords?
The standard access at XAMPP is "root" without a password.
So if you use XAMPP for the website, you should change this so that strangers don't just get into e.g. Can log in to the database.
That is possible. As an operating system I recommend the Linux distribution Ubuntu Server instead of Windows 10. Apache web server is included. But you have to consider that a laptop is not designed for continuous operation.
I'd rather take a storage provider where you can host your website on it. For example this: https://www.bplaced.net/ This offers 1GB of free storage space for a website.
You can use the Google Web Designer to design the website: https://webdesigner.withgoogle.com/intl/de_de Available for Windows, Mac and Linux. Operation is like a layout program.
After you have finished the website, you can simply upload it to your storage provider.
Finally you need a domain: http://www.dot.tk/de/index.html Simply enter your desired domain there. The domains with the extensions .tk .ml .ga .cf and .gq are free of charge. All others are chargeable. After you have secured one, you have to link it to the website uploaded to your storage provider.