This page has been robot translated, sorry for typos if any. Original content here.

Personal server

You can also do without the services of the hosting company, but at that time you will have to take on the role yourself by creating a personal web server in your building.

This will require not so much a powerful as a safe computer, because it will have to work around the clock, since any shutdown of it means the site is not available at that moment.

In addition, you will need a permanent and urgent connection to the Internet. Fast, because the speed of work with your server will depend on how quickly it can "give out" the information requested from the outside. The number of requests that your server can immediately process will also depend on the "width" of the connection used, as well as the likelihood of a catastrophic drop in the speed of work with the site with an impressive number of immediately connected users.

Registering a fixed IP address will still require some financial costs. The value of registering one fixed IP address varies around $ 10. And maintaining it costs about $ 5 for each moon providing the service. At RosNIIROS, it seems possible to register a whole new address space with the acquisition of a number of permanent IP addresses. It will cost from $ 500 per year depending on the number of received addresses, plus a one-time fee of $ 180. MIIS (Microsoft Internet Information Server)

If you decide to create a web server by your own efforts, this will require not only a secure computer, but also the corresponding software. The simplest tool is to use the tools built into the Windows operating system, then use the Microsoft Internet Information Server.

MIIS is a fully developed set of services that can not only generate also produce web pages upon external request, but also perform a whole set of special operations.

In order to install MIIS, just go to the "Control Panel", select "Install as well as remove programs", only in it - "Install Windows Components". There it remains to check the box "Internet Information Services" and then select the required components. If the FTP server of another manufacturer is used, then it is allowed not to install it at all, except that it is best to install the documentation anyway.

Do not forget about security. Therefore, it is best to install all the previously released operating system updates before connecting to the network as well. It seems to be a good idea to install an additional barrier on the hackers' route - the firewall.

The initial server setup is best done overall without connecting to the network. The MISS management interface will appear in the "Administration in the control panel" item.

It’s quite simple to check the operability of the installed server: in the browser line, enter localhost (the standard designation of your own computer). Your server’s default download page should open. If for some reason the page is not disclosed in any way, you should check the tab "Home Directory" in the management interface. By default, its value is set to c: \ intepub \ wwwroot. If for some reason the directory was not created in any way, create it manually, or set a different total value, for example, specifying the directory where the site is stored on the hard disk.

It seems necessary to check which file server gives on request as an index file (an index file is the file that is loaded when a site is requested without specifying any other additional links). The default values ​​are default.htm, index.htm, default.asp and iistart.asp. Check if there is an index file among them that is used on your site. If necessary, add new names, for example, for a site written in the PHP programming language, the index file may exist index.php.

If the site also does not load all blah blah later, check the server’s labor logs. They are located at c: \ windows \ system32 \ logfiles. Do not forget about the support of various scripts: this is one of the mandatory requirements for any modern server. Without them, you can not build complex systems, the functioning of forums, chat rooms, news feeds. Additionally, at least MIIS already has built-in tools for working with ASP scripts, they are by no means the most convenient ones at the actual moment, as well as common, for example, PHP.

Therefore, if you plan to work with other scripts, you need to install interpreters of these scripts on your server, only after installation you should indicate to the server which program will be used as an interpreter for one or another programming language.

To do this, open the Microsoft Internet Information Services management interface (Control Panel -> Administrative Tools -> Internet Information Services) and create a virtual directory (Action -> New -> Virtual Directory). Setting up the directory is quite simple. Enter the properties of the directory, select "Virtual Directory" also click on the "Configuration" button (Configuration). Now on the Mappings tab, you need to specify which files are executed by which interpreter. For example, for .PL files (written in Perl), you need to specify the program c: \ perl \ bin \ perl.exe (the default path when installing the Perl language interpreter). Similar work is configured as any other scripts.