How to create a local server? We deploy a local server on Windows

Apparently, very many users of computer systems of any type know that a local server on a computer can be created in just a few minutes. True, not everyone has a clear understanding of the basics of the methodology for carrying out all the steps. So let's try to give at least partial information on how to create a local server and adapt it for your own needs.

The concept of a local server

In general, initially you need to clearly distinguish between local servers created by type. In addition to the most commonly used web servers, you can create and configure gaming, proxies, and even DNS servers yourself. It all depends on what function will be assigned to a particular component.

local server

However, in most cases, all these components have one thing in common: they are initially created on local machines in the early stages without being hosted on a remote hosting, which allows them to be customized and edited directly on their own computer terminals.

Now we will try to consider questions concerning how to create and configure a local server on a computer, depending on its type and purpose.

Software selection

В принципе, выбор программного обеспечения – личное дело каждого пользователя. Тут стоит отметить, что, если, к примеру, при создании локального веб-сервера используются только языки гипертекстовой разметки вроде HTML или CSS, дополнительно устанавливать программные пакеты не имеет смысла, поскольку любой интернет-браузер прекрасно их «понимает».

Another thing is when the additional components are scripts written, say, in PHP. It is necessary to use them, and the browser can not cope. This is where specialized software comes in handy. As for the proxy, DNS and game servers, the situation here is also ambiguous. Somewhat later, the simplest applications for creating and configuring them will be considered, but for now let's focus on the main issue regarding standard local web servers.

How to create a local server: installing and configuring Denwer

If you decide to start creating a local server for subsequent hosting on a remote hosting, of course, you will need some kind of tool. Most often, when searching for relevant software on the Internet, users are redirected to download the Denwer software package, which is a domestic product and is also simple enough to understand and work with it.

local server on computer

It contains all the necessary tools like Apache, PHP, MySQL, phpMyAdmin, sendmail, etc. The only drawback is that it will additionally have to install special engines like Joomla or WordPress in the simplest version.

So, the creation of a local server begins with the launch of the installation EXE file (of course, on behalf of the Administrator). A window appears, similar to the DOS mode. Follow the instructions of the installer. First, we select the server storage location, then assign the letter and the virtual disk operation mode (in principle, the proposed parameters can be left unchanged). This completes the installation. Now the local server needs to be checked for correct functioning.

Health Testing

At this stage, we launch the created server, and in the window of any Internet browser, enter http: // localhost. If the program is installed without errors, the browser will display a message that everything works.

how to create a local server

If you scroll down the page, you can see the main links that can be used to fully test the work of the local server.

Encoding issues

Sometimes you may encounter an unpleasant situation when the e-mail you send looks like a set of incomprehensible characters. This happens only because the program was originally designed for UTF-8 encoding. It can be completely elementary change, for example, to KOI-8R or something else.

Installing a local server: additional engines

Now another important point. The local server of Windows-systems can not do without special additions, called engines (WordPress, Joomla, etc.).

local proxy server

Для начала в папке www, расположенной по пути \home\local host, в основной директории создаем произвольный каталог. После этого вводим в адресной строке браузера путь http://localhost/ и проверяем, что именно открывается. Если открылась именно эта директория, все нормально. Копируем файлы движка в этот каталог при помощи любого файлового менеджера (хотя бы того же «Проводника») и вводим адрес заново. Появляется окно «Мастера установки», где нужно всего лишь следовать указаниям.

Database Supplement

Now the local server has to attach special databases. To do this, use the phpMyAdmin service, which is accessed by entering http: // localhost / tools in the address bar of the browser. First, the section for creating a new database is selected, it is given a name (arbitrary, but it is better to specify the same one that was applied to the folder in the previous section).

create local server

Затем возвращаемся на главную страницу и настраиваем параметры привилегий (создаем нового пользователя, указываем логин и пароль, в качестве хоста используем localhost и отмечаем «птичками» все, что есть в окне). Остается нажать кнопку «Пошел!» и дождаться окончания процесса.

Transferring a local server to hosting

На следующем шаге следует подключение сервера к локальной сети и перенос на хостинг, чтобы он стал доступным пользователям в сети Интернет. «Родной» способ переноса данных на удаленный ресурс выглядит не слишком удобным ввиду множества дополнительных действий.

local server setup

Setting up a local server in terms of transferring data to remote hosting is best done by the FileZilla application, with which you need to copy the files in the above directory to the root directory of the host. This is either the PUBLIC_HTML folder or the HTDOCS section. Now it’s a small matter: we change the so-called absolute paths to folders and files and directories in the engine settings, indicate the name of the database that we intend to create to use on the remote host, and specify a new login with a password for the host. Everything. This work is completed. Connecting to the local server user machines can be made through any Internet browser.

Local proxies

Now let's see how to create and configure a local proxy server. What is it for? Firstly, it can be used to track absolutely everything that is downloaded to a computer terminal or laptop in the process of Internet surfing. And secondly, so you can save traffic if it is paid.

The local proxy server works on the principle of caching calls to DNS servers and stores, say, pictures or any other objects, and when you visit a resource again, it loads, so to speak, from its memory, speeding up access to the resource.

To create this type of server, you will need the simplest HandyCache application, which should be placed in a convenient place for quick access, since every time you connect to the Internet you will have to access it.

local dns server

Перед началом работы следует задать настройки прокси. К примеру, если используется браузер Opera, в параметрах серверов для HTTP нужно указать значение 127.0.0.1, 8080 – для порта. Теперь запускаем приложение, заходим в настройки и смотрим на вкладку «Дозвон». Как правило, программа сама определяет, какой тип подключения используется в данный момент. Далее нажимаем одноименную кнопку и пользуемся созданным сервером.

Yes, please note: in the cache settings, you can specify the size of the order of 300 MB. In theory, this should be enough for all occasions. You can view the contents in the Cache folder of the main directory where the program was installed. And one more thing: remember, this is a regular proxy server, and not an anonymous one, so you should not expect any changes or hiding the IP address from it.

Local DNS Servers

Локальный DNS-сервер можно использовать в случаях, когда связь нестабильна, локальная сеть имеет слишком большое ветвление на основе TCP/IP, или же вы занимаетесь веб-разработками и их тестированием. В принципе, для таких целей прекрасно подойдет программа BIND. Она хоть и рассчитана в основном на UNIX-подобные системы, тем не менее, прекрасно работает и с Windows (исходим из того, что на терминале установлена не серверная версия «Винды», которую можно настроить в «Панели управления»).

Run the installation file and follow the instructions. For convenience, it is recommended to install the program directly on the C drive in the newly created BIND directory. Next, enter the username and password, then activate the installation process and wait until it is completed.

local windows server

Now in the folder C: \ BINDetc you need to create a file "name" .conf, in which you write the settings that the local DNS server will use (the name is arbitrary and is set without quotes). In order not to waste time, you can easily find the desired file on the Internet and download it by placing it in the specified location.

connect to local server

Теперь перезагружаем систему, затем вызываем командную строку (cmd через меню «Выполнить» или сочетание Win + R), где прописываем запрос nslookup. Если происходит подтверждение, значит, сервер установлен правильно и работает без ошибок.

Local game servers

Наконец, рассмотрим еще один тип серверов. Это локальный сервер для игр, использующих онлайн-режим в рамках локальной сети. Поясним, что это такое на примере игры Minecraft. Для этого нужно скачать сам сервер с официального сайта игры и использовать приложение Hamachi. Обязательное условие для корректной работы – наличие в системе установленного пакета JAVA с последними обновлениями.

server connection to the local network

To configure, use the server.properties file, where we enter the data provided by the Hamachi application. We register the server's IP address, the number of players, the use of possible game modes, etc. In the online-mode mode field, it is mandatory to specify the value true. After that, save the changes and close the file.

Now we define the internal IP of the server that will be used by players when connecting to the terminal on which it was created. Computers, of course, must be connected to the server itself either through a local network or through a VPN. The IP address of the server terminal must be static with a mandatory binding to the MAC address.

local server installation

Log in using the Minl2 application, where the login and password are specified during registration. After the done actions, we leave the server and enter again, but already in offline mode using the created login and password. In the settings section, select Multiplayer and enter the desired server IP. Everything. You can enjoy playing with a real opponent.

Conclusion

Of course, this is not all the nuances that may arise when creating local servers of different types, and, of course, not all programs that help in this process. Let's just say: these are the general and basic principles of such technologies. And if you look, there is nothing particularly difficult here. A little time and patience - and a local server of any type will be created within 10-15 minutes.

Установка Apache 2.4. Локальный сервер Windows. phpNT


#2 Установка локального сервера и запуск phpMyAdmin, Базы данных MySQL


Print Friendly, PDF & Email
Loading ...

Add a comment

Your e-mail will not be published. Required fields are marked *