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

Personal server

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

This will require not so much powerful as a secure computer, because he will have to work around the clock, since any shutdown means the site is inaccessible at such a moment.

In addition, you will need a constant and hasty connection to the Internet. Fast, because the speed of work with your server will depend on how quickly it can "issue" information requested from outside. The number of requests that your server will be able to process immediately 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 an unchanged IP address will still require certain financial costs. The value of registering one fixed IP address is around $ 10. And its maintenance will cost about $ 5 for each moon of the service. In RIPN it is permitted to register a whole new address space with the receipt of many permanent IP addresses. This will cost from $ 500 per year, depending on the number of addresses received 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 appropriate software. The most ingenious tool is to use the tools built into the Windows operating system, then eat the Microsoft Internet Information Server web server.

MIIS is a well-developed set of services that can not only form web pages on an external request, but also perform a complete set of special operations.

In order to install MIIS, just go to the "Control Panel", select "Install and Uninstall Programs", only in it - "Install Windows Components". There it remains to check the box "Internet Information Services" and then select the required components. If an FTP server of another manufacturer will be used, then it is allowed not to be installed in any way, only the documentation is best installed in any case.

Do not forget about safety. Therefore, right up to connecting to the network, it’s best to install all server operating system updates that were previously released (and in most cases they "patch holes" in the security system). It seems nice to set up an additional barrier to the hackers' route - the firewall.

The initial setup of the server is best done by general without connecting to the network. The MISS management interface will appear under "Administration in the control panel."

It’s very simple to check the functionality of the installed server: in the browser line, enter localhost (the standard designation for your own computer). Your default server page should open. If for some reason the page does not open in any way, you need to check the "Home Directory" tab 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 general value, specifying, for example, the directory in which the site is stored on the hard drive.

It is necessary to check which file server returns as an index one upon request (an index file is the file that is downloaded when the site requests it without specifying any other additional links). By default, default.htm, index.htm, default.asp and iistart.asp are selected. Check whether to eat among them the index file, which is used on your site. Add new names if necessary, for example, for a site written in the PHP programming language, index.php may exist in the index file.

If also later than this site all the blah blah does not load, 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 cannot build complex systems, the functioning of forums, chats, news feeds. Additionally, even though MIIS already has built-in tools for working with ASP scripts, they are by no means currently the most convenient and also common, like, say, 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 tell the server which program will be used as an interpreter for a particular 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 -> Create -> Virtual Directory). Setting up a directory is quite simple. Enter the directory properties, select "Virtual Directory" and also click on the "Configuration" button. Today, on the Mappings tab, you must 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 interpreter). The work of any other scripts is similarly configured.