Creating a server from scratch
Before creating a home hosting, it is worth checking whether the computer will pull a high load and whether the Internet will cope with a large data flow. To fully immerse yourself in the topic, let's talk about all the nuances.
When creating your own server, you can go two ways: use a personal computer or rent a VPS from a hosting provider.
In the first case, you will need to give all your PC's strength to data processing and maintaining high hosting performance. Please note that the server will use your internet connection, so take care of an uninterrupted network with a powerful tariff plan.
If you are confident in the strength of your machine, then the next step is to create a static IP. By default, the address is set as dynamic, it changes every time you access the Internet. Static, on the contrary, is set once and always remains unchanged. This allows you to provide an entry point for "white" sites, payment systems, secure connections and mail services.
When we launch our resource on a third-party hosting, we are only required to pay for the service, but when creating our own website on a local machine, among other things, a static address is required. Their number is limited, each of them is rented for a certain time, and during this period no one else can officially use it. Simply put, when an individual address is assigned to an organization, customers can easily find a web resource and purchase the necessary services.
You can discuss the purchase of a static IP with your Internet provider. This is followed by the installation of the software, in our case, Open Server, a server platform designed for web developers, is perfect. Thanks to it, we can not worry about installing PHP, Apache, MySQL and other tools. By installing this software, we will be able to start the server at home and upload the website to it.
Manual how to do it via open server:
First of all, we will install the official version — go to the developer's page for this and select one of the program packages.
On the page that appears, we are offered to donate money to developers. If you pay the minimum cost, the download speed will increase significantly. Otherwise, just click on the "No thanks, I just want to download" button and wait for the download.
Install the program and go to its directory. Here we will see a set of different folders and two files to run — choose the one suitable for the OS bitness and open it. Also, to start, disable the antivirus.
A new icon in the form of a red flag will be activated in the lower right corner — it signals that the program has opened, but not yet started. Let's leave it like this for now, click on the icon and go to settings.
Go to the "Server" tab and pay attention to the line "Server IP address". By default, it is set as local, that is, access is open only to the current computer. To start the server on the Internet, you will need to specify a static address and click "Save".
Now you can start the server — just click on the red flag and select the "Start" option. In some cases, the error "Configuration incompatibility: localhost domain/alias can only be used with the IP address 127.0.0.1" may occur. In such cases, you need to go to the software directory, open the domains folder and rename the localhost folder to openserver.
We have worked with the configuration of the local server. As for renting a VPS from a hosting provider, we will need to choose a suitable tariff and activate it. We will be able to upload our web resource to a ready-made server, and then open it to the whole Internet.
This concludes our article. Good luck!
I've never thought about creating personal server, even for free. This seemed unbelieveable, but thanks to your article, now i'm more aknowledged about creating servers. Thank you for this useful information.
Hello! I started thinking about creating my own server quite recently, but I was afraid that it was completely impossible or difficult, especially for a beginner. But after reading your article, I got motivated! Now I'm sure I can do it thanks!
Quote from: Gvarde on Jul 13, 2022, 05:57 PMIf you are confident in the strength of your machine, then the next step is to create a static IP. By default, the address is set as dynamic, it changes every time you access the Internet. Static, on the contrary, is set once and always remains unchanged.
Tempting, of course. A few years ago I already tried to use my computer, but rather as a client. I launched the so-called advisor program (bot) in the exchange terminal. She worked around the clock and traded currencies. But my provider sometimes changed the IP address and then unpleasant things happened. In general, your article mentions the purchase of a static address - I did not know about this possibility, thanks.
After reading, I began to think about creating my own server, I never thought about it, because I thought it was impossible. ::)
To create your own web server, first of all you need to install a multi-user network operating system.
The choice is huge: "Debian", "FreeBSD", "CentOS", "openSUSE", "Ubuntu", "Windows" and many others.
On the web, you can find many examples of testing in the operation of the above-mentioned operating systems and their rating in accordance with the test results. For instance, the "SOS" rating:
1st place: "Debian" and "Ubuntu Server";
2nd place: "CentOS";
3rd place: "FreeBSD" and "Windows Server";
4th place: "Red Hat Enterprise";
5th place: "Fedora".
Of course, the lion's share of the network software market is made up of operating systems that occupy the first place in the rating. Therefore, in order to create a web server on a computer for the first time, we recommend choosing one of them.