Setting up Denver for local network. Denwer - your local web server: installation and configuration of Denwer. Creating a database and user using Denwer

Web programming in our time is available not only to narrow specialists in their professional activities. This area of ​​the IT industry is often encountered and system administrators, and even ordinary computer users interested in the development of Internet technologies.
In the article Error #1273 - Unknown collation: utf8mb4. Updating MySQL in Denwer we talked about transferring a site's database from one hosting to another, as well as transferring a site to a local computer. Today we will talk about how to open a website deployed on a computer from another computer and from phones in local network .

Access to Denwer from the local network

Before all the settings, we will give a few examples when access to the site from the local network might be really useful:

  • the site was created for corporate purposes . That is, the site is used exclusively for work inside an office or building of an organization/institution. In this case, spending money, even if not the most, on purchasing a domain name and hosting is not always rational;
  • required debugging the site in different versions of operating systems , be it different Windows versions, MacOS, Linux or other, more exotic OS. Yes, to test the site on other operating systems, just use virtual machine, but this is the case if the site has already been uploaded to the hosting, but at the stage of preparation and making significant changes to the structure and design of the resource, the method of accessing the site on the local network will be very useful;
  • debugging the site on mobile devices Oh . Some modern CMS templates can behave quite unpredictably when opened from mobile devices. Today this should not be neglected, because search engines People are becoming more and more loyal to resources optimized for smartphones. Of course, popular browsers have an option that simulates the display of a page on a mobile device, but if you check, you will be convinced that the operation of some site menus and the display of some elements in a desktop browser will still differ from those on a real mobile gadget.

These are just some of the reasons for organizing accessing the Denver site from the local network. Of course, you may have your own reasons for this. Next, let's start setting up.

The first two stages of preparation are carried out directly on the computer where the site is located, that is, where Denver is installed. This is ours local server or, in other words, hosting, that is, the storage on which all resource files are located.

To begin with, you need to provide availability local server online. Modern versions of Denver themselves write exceptions to the standard firewall of the operating system during installation.

But in the case when the main computer is inaccessible from the local network, you need to add incoming/outgoing connections to the Firewall exceptions.
First, add the access port to the exceptions of the Firewall or Firewall you use. Default Denver uses port 80 .

If after the settings have been made the computer is still not accessible from external devices, then you will need to add the IP addresses of external computers and mobile devices on the local network to firewall exceptions.
You can read in detail about how to find out the IP address of a computer on a local network in the article Determining the IP address and mac address of a computer on the network. That's all we need to do at this stage.

Opening a website from Denwer by IP address on the local network

Second stage of setup. Now we need to make sure that when connecting to an IP address our main computer the required local site opened. All the manipulations below assume that we already have denwer installed, and the local site is accessible from the main computer.

There are two ways open the desired website using your computer’s IP address .

First way- this is to create a directory in the home folder of Denver, the name of which will be the IP address of the main computer, for example, 192.168.0.21 and in this directory place the www folder with the site files. That is, the path to the directory containing the site will be as follows:

X:\home\192.168.0.21\www\

Where X- this is a letter virtual disk, created when installing Denwer;
192.168.0.21

This method is simple, but its disadvantage is that it works at the stage of creating a local site. If you have already deployed one, then this option is not suitable.
In addition, with such a setup you will have to open the site exclusively by IP address, not by domain name.

The second method of opening a website by IP address on the local network - file usage .htaccess

.htaccess(from English hypertext access) - an additional configuration file for a web server (such as Apache and the like)

A similar file may already be located in the www or public_html folder, but we need to create this file at the same level with these folders ( www or public_html ), that is, in the directory with the name of the site’s domain name. .htaccess will be as follows:

X:\home\site\.htaccess

The contents of the file will be like this (other settings can be used, but their discussion is beyond the scope of this publication):

# dnwr_ip 192.168.0.21

Where 192.168.0.21 - IP address on the local network of the computer on which Denwer is installed.
If for some reason you are unable to create such a file, you can download the .htaccess file from the archive attached to the article: .htaccess

IMPORTANT! Before using the file taken from the above archive, you must open this file with any text editor (Notepad, Notepad++, etc.) and in the line # dnwr_ip 192.168.0.21 change the IP address to the address of your computer with Denwer installed on the local network. After this, save the changes made to the file

After restarting Denver, when you go to the host computer’s IP in the browser, the site will open, in the directory of which the file is located .htaccess

Opening a website from Denwer on a local network by domain

The main goal has been achieved, our the site is accessible on the local network, however, each time fill in address bar The IP address is not very convenient. You need to make sure that the site on the local network opens when you navigate to the domain name in the browser address bar.

All we need to do for this is to edit the file properly hosts in the client's room operating system.

IMPORTANT! File hosts There is no need to edit it on the main computer; all necessary entries are made there when the Denwer program is launched. All work at this stage is carried out exclusively with the file hosts the computer from which you will connect to the site from the local network

So, if on client computer Windows operating system installed , then we need to open it for editing in any text editor(Notepad, Notepad++ and so on) file located along the path

C:\Windows\System32\drivers\etc\hosts

In the editor that opens, add a new line and make the following entries there:

192.168.0..168.0.21 www.site

Where 192.168.0.21 - IP address on the local network of the computer on which Denwer is installed;
website- the address through which a user on the local network should receive our website.

Save the changes.

if you Cannot save changes made to the hosts file, then you can copy the file to any user folder (Desktop, My Documents, and so on), edit the file, save the changes, and then place the file hosts back to the etc directory from where the file was copied.

If access to the local network needs to be provided to a smartphone/tablet on Android based , then a similar entry given above must be added to the hosts file, which is located in the following path:

/system/etc/hosts

How to do this is described in detail in the article. We remove ads on Android. Hosts file
If a text editor Failed to change hosts file on Android, then you can use a special utility called Hosts Editor, and is designed specifically for this purpose.

IMPORTANT! And in case of editing hosts file on Android manually, and in case of using Hosts Editor required for successful operation root rights (superuser rights obtained after hacking the device’s operating system). The same applies to devices iPhone with installed iOS, on which to edit hosts file is required Jailbreak

File paths hosts for some other operating systems (taken from the above publication):

IN UNIX-like operating systems like Linux the file is located in the directory:

In latest versions Mac OS X And iOS from Apple the path will be as follows:

/private/etc/

or simply:

What you need to know when working with Denwer on a local network

The settings are done, our the site is accessible on the local network using a domain name. Let's look at some points that need to be taken into account when working with Denver on a local network:

That's all we've covered, how to open a website from Denver on a computer and smartphone on a local network .

Good afternoon, dear readers. This topic has been chewed up and down and is probably on everyone, somewhere there are inaccuracies and incompleteness of information, and there are also not enough photos and step-by-step screenshots, after reviewing all the sites I made a complete review, detailed guide for installation and configuration a useful tool for webmasters - Denwer(read “Denver” - a gentleman’s kit for a web developer).

Theory. What is Denver and how does it work?

Denver is a software shell ( web server emulator on the systemunix ) which includes a set of distributions and modules ( Apache+SSL, PHP5, MySQL5, phpMyAdmin, etc.) for debugging sites on ( local, https://localhost) computer or laptop without the need for Internet access.

OS (Operating Systems) support: Windows XP/Vista/7/8.

Denwer Features

The key feature of Denver is its support for working with several web projects at once, each of which is located on a separate virtual host (in the form of a separate folder). Virtual hosts for projects are created automatically: for example, you just need to copy the project files to /home/NameWebProjecta.ru/www, and it will immediately become available at https://NameWebProjecta.ru, we will look at this in more detail later.

All Denver components are already configured and ready for work (in particular, the Russian language encoding of MySQL, SSL, etc. is correctly configured). In addition, you can update any of Denver's services (Apache, PHP, MySQL, etc.) manually by simply copying new versions of distributions over old ones.

Denver Basic Package Contents:

  1. Apache 2 with SSL support and mod_rewrite.
  2. PHP5: executable files, module for the Apache web server, distribution and adapted configuration file, GD library, MySQL and sqLite support modules.
  3. MySQL5 with support for InnoDB, transactions and Russian encodings (windows-1251).
  4. phpMyAdmin - MySQL database control panel, as well as a script that makes it easy to add a new MySQL user.
  5. Debugging sendmail emulator (/usr/sbin/sendmail), which does not send messages, but writes them to the /tmp/!sendmail directory.
  6. System automatic search virtual hosts and system updates hosts file, as well as Apache configurations. Thanks to it, adding a new virtual host (or third-level domain) involves easy creation directory in /home (see analogy with existing hosts) and restarting the complex. All changes are made to configuration and system files automatically, but you can control this process using the host template mechanism (see /usr/local/apache/conf/httpd.conf for detailed explanations).

Add-ons (“expansion packs”) are available on Denver’s official website to expand the capabilities of the basic kit:

  • PHP version 3 as a CGI program;
  • PHP version 4 as a CGI program;
  • additional modules for Apache;
  • additional modules for PHP;
  • full version of ActivePerl;
  • ActivePython interpreter.
  • MySQL server version 4;
  • Parser technology support modules;
  • PostgreSQL DBMS;
  • FireBird DBMS versions 2 and 1.3
  • other popular modules.

I think that's enough theory, let's move on to practice...

Denver installation

At the time of writing this tutorial, I was using the following version of Denver:
Version: Denver-3 from 2012-09-16

You can always download latest version Denver from the official website listed above.

How to install denwer? detailed instructions

So, you have downloaded the Denver installation file. We open the file, a small window will appear “Are you sure you want to install the base package?” press Yes.

Then a browser window will open, which you can close immediately, you will see the following picture..

As you can see, the entire installation will take place in the cmd command interpreter, the first welcome window, click the button to continue Enter.

The program will check for the presence of the necessary drivers and system components, then ask us to indicate in which directory to install Denver.

If you do not specify anything, then by default the program will be installed in the C:\WebServers directory, I specified this as C:\Server. You can specify your name or leave it as default, then click the button Enter. A question will appear..

Click " y" yes

Next comes the check necessary utilities to create a virtual disk, in Windows this utility is called subs. You will need to specify the name of the virtual disk, by default the system suggests disk Z, my disk Z is busy, so I chose disk X. You can also specify any free disk or leave the default disk Z if it is not busy. Click Enter.

After copying is completed, you need to indicate in which mode Denver will start, select the item and click [ Enter]

All! Denwer installation is complete. A browser window will open indicating the installation is complete, read and close.

We should have shortcuts on the desktop...

LabelTeamAction
StartDenwerC:\[your_directory]/denwer\ r un.exe)Denver server launch
Restart DenwerC:\[your_directory]/denwer\ restart .exe)restarting the Denver server
Stop DenwerC:\[your_directory]/denwer\ stop .exe)Stopping the server
C:\[your_directory]/denwer\ SwitchOff.exe

Launching and setting up Denwer

To get started enjoy Denver, do the following:

  1. Launch Denver using the shortcut Start Denwer on the desktop.
    If you have not created shortcuts, you can run Denver using the command C:\[your_directory]/denwer\Run.exe , to do this press the key combination [ Win]+[R] and enter the command in the window that appears.
  1. Open your browser and go to https://localhost
  2. You must see home page Denver. A little lower on this page there is a table with links, I advise you to immediately check the functionality of all links.
  1. If after launching Denver https://localhost does not open, check if Denver is not blocked by your antivirus or firewall. For example, problems were noticed with NOD32 in Windows XP (you need to add the process X:/usr/local/apache/bin/httpd.exe to the list of exceptions, this can be done in the IMON/Settings/Miscellaneous/Exception window).

Attention! If you are using Skype, make sure it doesn't occupy any ports 80 And 443 , essential for Apache works in Denver (" Tools - Settings - Advanced - Connection - Use ports 80 and 443 as incoming alternatives» should be disabled).

Attention! Common mistake: if only localhost is running and other hosts are does not work, please check if your proxy server is turned off ( Tools - Internet Options - Connection - Network Settings).

Now you know how to use Denver as a testing and debugging site for your sites. I want to tell you some more useful information...

Denwer directory structure

HTML documents must be located in /home/ directories<имя_хоста>/www. By default, 3 virtual hosts are configured:

— https://localhost (contains testing scripts and various utilities);
— https://test1.ru;
— https://custom-host:8648 (a host with its own IP address and port);

Virtual hosts with domain names of the third and higher levels are also supported. Examples of how Apache looks for host document directories in this case:

Domain name Document directory

~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~

abcd.test1.ru /home/test1.ru/abcd

ab.cd.test1.ru /home/test1.ru/ab.cd

test.localhost /home/localhost/test

ab.cd.localhost /home/localhost/ab.cd

The /usr/local directory contains software components— executable and configuration files of Apache, PHP, MySQL. The authors tried to keep this arrangement close to that accepted in the UNIX environment. But there are serious differences - not all components of the package are distributed in the appropriate directories. In any case, complete analogy with the UNIX OS cannot be achieved, but this placement of executable and configuration files makes it somewhat easier to navigate the server components.

Utilities included in the "Gentleman's Set"

  • DNSearch: file search the search is carried out in files with the extensions htm, html, shtml, xhtml by directly viewing the contents of the documents.
  • List of registered sites – the utility generates a page with web projects (sites) created in the system.
  • Creating new databases and MySQL users – a very convenient and simple utility for creating Databases (DBs), unlike phpMyAdmin.
  • phpMyAdmin — MySQL DBMS administration

How to remove Denwer?

Denver is autonomous: It can be located in any directory on the disk (or even on a flash drive). He also doesn't change system files Windows, so Denwer can be uninstalled by easy removal your folder.

What should I do to remove Denver?

  1. Stopping the Denwer server(run the Stop Denwer shortcut on the desktop or use the command in cmd:
    C:\[your_directory]/denwer\ stop .exe)
  2. Stopping and dismounting a virtual disk(command in cmd: C:\[your_directory]/denwer\ SwitchOff.exe
  3. Delete the directory where Denwer is installed
  4. Remove desktop shortcuts

With this I want to conclude this lesson, I hope it was useful for you. If you have any questions, write in the comments or email me.

Best regards, Chirkov Sergey.


Is it possible to configure the system so that sites located on local computer, were available to all users of the local network to which I am connected, or even from the Internet?..

Projects started in Denver, by default not available from the local network. This is achieved by all virtual hosts having an IP address of 127.0.0.1, which always denotes the "current local machine".

However, it is still possible to assign a particular virtual host an “external” IP address, accessible from your local network or even the Internet (if the computer has permanent IP address in the Internet).

Remember: Denver is a development tool, not a hosting tool. Although projects in Denver can be opened to the public, we strongly discourage this. The point here is security: Denver, as a rule, runs with Administrator rights, which means that scripts launched under its control can do whatever they want on the machine. The slightest "hole" in the security of the script will give a hacker access to your machine.

Finding your IP address

First, you need to find out what IP address is assigned to you on your local network or Internet. The easiest way to do this is by opening Command line Windows and typing there:

ipconfig

You will see something like the following:

Setting up the IP protocol for Windows
WiFi - Ethernet adapter:
The DNS suffix of this connection. . :
IP address. . . . . . . . . . . . : 192.168.0.49
Subnet mask. . . . . . . . . . : 255.255.255.0
Main gate. . . . . . . . . . : 192.168.0.1

In this case, the external IP address of the machine on the local network is 192.168.0.49. The list may contain several network interfaces at once (if your computer is equipped with several network cards or wireless devices). In this case, you need to determine which of the interfaces is external, accessible from the local network. (IP addresses starting with 192.168 or 10 are reserved only for access from the local network, not from the Internet. That is, they are "private".)

Make sure your IP address is static, i.e. does not change the next time you turn on the machine or reboot. If the IP address is assigned dynamically, then there is no simple way, allowing you to connect Denver to it.

Setting up a Windows firewall (firewall)

In most Windows systems, the built-in (or manually installed by you) firewall or antivirus blocks connections from external machines to the current one. This is done for security reasons. Of course, if you open the site to the outside, this blocking should be disabled, otherwise no one will see the site.

Our goal is to resolve Windows connections to port 80 (HTTP protocol) of your IP address 192.168.0.49, on which Apache will hang. Here are instructions on how to do this in Windows XP:


  1. Open Start - Control Panel, select Windows Firewall.

  2. Go to the tab Exceptions.

  3. Click the button Add port, in field Name enter your IP address, and in the field Port number enter 80.

If you installed your own firewall or antivirus, then, of course, you will have to refer to their documentation.

A simple way to open a website to the outside

Let's assume your IP address is 192.168.0.49, as in the example above. The easiest way to force Denver to open a specific site at http://192.168.0.49 is to place the site's documents in a directory:

/home/192.168.0.49/www

Yes, the directory name contains dots! Don't forget to restart Denver as well.

Moreover: if your ISP gave you not only an IP address, but also an associated Domain name, then the site will be immediately accessible using this domain name. In the case of a static IP address, the domain is almost always issued; you just need to ask your provider for it. For example, if your domain name is abcd.ints.ru (provider Corvette-Telecom NEKST), then the site will be available at http://abcd.ints.ru.

Another way to assign an IP address to a site

If you already have virtual host in Denver and you don't want to rename its documents directory, then you can assign the site its own IP address and make it accessible externally. Let's assume that your host is stored in the /home/mysupersite/www directory. To assign it the IP address 192.168.0.49, you need to create a file /home/mysupersite/.htaccess and add the following lines to it:


## File /home/mysupersite/.htaccess
## Enter your external IP address here, not 192.168.0.49!
# dnwr_ip 192.168.0.49

By the way, you can find out what other directives exist by looking at the /home/custom/.htaccess file.


Restart Denver. Check that at http://192.168.0.49 (instead of 192.168.0.49, of course, you need to substitute your own IP address) your site /home/mysupersite/www opens.

Security Alert

Let us remind you once again that Denver is not a complete and reliable Web server, it is just tool, allowing you to debug (test) sites “without leaving your home.” Any attempt to use it for other purposes may be unsafe.

In general, you can configure anything you want, it’s another matter - need to whether it is. Remember that a Web server that is open to the outside world represents a potential vulnerability in your machine's security. For example, an attacker can penetrate through a script that is not fully debugged. Because Denver is launched with Administrator rights (that is, with maximum rights in the system), then any script, even the smallest one, can do whatever it pleases. Let's assume that you wrote a seemingly harmless script called test.pl that does the following:

#!/usr/bin/perl -w
use CGI::WebIn;
use CGI::WebOut;
Header("Content-type: text/plain");
open(F, $IN) or die "Could not open\n";
while( ) ( print )

The program appears to simply print the contents of the file specified by the fname parameter. For example, http://localhost/cgi/test.pl?fname=test.pl will print source programs. However, it is easy to see that calling open in this form is unsafe. For example, by going to the address /cgi/test.pl?fname=|del+/s/q+c:\windows, the program will execute:

Open(F, "|del /s/q c:\\windows") or ...

This will immediately destroy the entire Windows directory!

You might say that localhost is what localhost is for, to work only from the current machine. If you opened access to the outside according to the instructions given above, then everything is exactly like this. However, in case incorrect setting Apache can be penetrated on localhost and from outside (if the server is open). This is done very simply:

C:/> telnet server.ru 80
GET /cgi/test.pl?fname=|del+/s/q+c:\windows HTTP/1.1
Host: localhost
here you just need to press Enter

Conclusion: Unless you have significant experience in server administration, installing an externally accessible Web server can be dangerous. This especially applies to the lucky owners of dedicated Internet channels. One wrong move and you'll wake up one morning with a freshly formatted hard drive (at best).

The Denwer local server is extremely popular, so users have a lot of questions about installing and configuring it. This article, among other things, discusses and possible problems when working with Denver.

Any modern website goes through a rather lengthy development stage, which includes both creating and polishing a template and filling it with content.

This entire process, of course, must be hidden from future site visitors, so this work is carried out not on a remote server, but on a local server, which is the developer’s own computer with special software installed on it. Most often, such software is Denwer.

Strictly speaking, a local server is necessary for the development of serious projects - dynamic sites, the operation of which requires the use of PHP or Perl scripts.

Simple one-page sites running only HTML and CSS can be successfully created and tested directly in the browser.

Why is Denwer used more often?

As we have already found out, a local server is a specialized software, by installing it on your computer, a webmaster can develop his website without going online.

Today there are quite a lot of similar platforms for website development, among them the local Denwer server is popular. Therefore, users often have questions about how to launch Denver.

This package of tools for web developers is distinguished by its versatility and customization flexibility. It includes the Apache HTTP server, the PHP preprocessor, the PHPMyAdmin component for database management, the Perl interpreter and a large number of other important and useful components.

The undoubted advantages of Denwer include the extreme ease and speed of installing the package, as well as the fact that all Denver files after installation are located in one single folder Webservers.

Regarding the question of how to update Denver, it should be said that the installer does not go into the operating system registry, so you can transfer all your local projects along with databases to another computer or disk by simply copying the local server folder.

Denver is just as easily removed - no traces remain after deleting its folder in the system, after which you can download the updated installation package from the official website and perform the installation again.

The main disadvantage of Denver is that it can be installed exclusively on the Windows operating system.

So, let’s briefly note again key features Denwer local server:

  • the basic version of Denwer can be easily expanded with new distributions and modules;
  • databases are managed using the full-featured PHPMyAdmin panel;
  • there is the possibility of simultaneous work with any number of sites;
  • it is possible to install older versions of PHP4, MySQL4, which can be useful for developers if the site does not work with the current version of localhost denwer;
  • The functionality of the site on a local server is completely similar to the functionality on remote server any hosting provider. This allows you to fully test the site before uploading it to a remote server.

Step-by-step instructions for installing Denver

For those who do not know how to use Denver, we note that the advantage of the latter is its extreme ease of installation.

To install this tool developer, you must perform the following steps:

Don't know how to launch a website in Denver? Just create a project in the C:WebServershomelocalhostwww folder.

The next step is setting up a local server

One of the advantages of Denver is how easy it is to set up. We will tell you how to configure Denver correctly below. If you use the default settings, problems may arise when installing large extensions or when importing a large database.

Standard settings limit the size of downloaded files to only two megabytes. To remove this restriction, you need to edit the php.ini file in a regular text editor (located in the usrlocalphp5 folder).

In the line upload_max_filesize=2M you should change parameter 2 to 32, thereby limiting the size of the uploaded file to 32 megabytes.

In this case, in the line post_max_size=8M, the eight should be replaced with the number 64, since this parameter determines maximum volume transferred data, and it must be two or even three times larger than the size limit of the downloaded file.

If all users followed these recommendations, there would be less talk about Denver not working.

Getting started with a local server

In order to start working with the local server, you need to launch Denver by clicking double click Click on the “Start Denwer” icon on the desktop, open the browser and type the address http://localhost/denwer/ in the address bar.

If a window similar to the one in the picture below opens, then your local server has started successfully. If error messages appear, this means that Denver does not start:

On the previously opened page http://localhost/denwer/, find the section “ Denver testing"and in the table of this section, follow all available links, each of which activates one of the installed modules.

If there are no problems, the capabilities of the future site on your local server will fully correspond to what you will get on the hosting provider’s remote server:

First of all, check the functionality of PHP and go to the database administration service - PHPMyAdmin.

If you don't know how to log into phpmyadmin denwer, just click on the appropriate link in the same table:

To start developing new project on a local server, you just need to create new folder, for example, Moy_Sayt.ru in the directory C:WebServershomelocalhostwww . Its name will correspond to the name of your site.

In the future, to open a local site, you will need to enter the name of this folder in the browser after http://localhost/, for example, http://localhost/Moy_Sayt.ru/.

What to do if Denver doesn't work?

After connecting the local server, the browser in some cases displays a message that Denver does not start. The main reason is most often that your antivirus package or firewall is blocking it.

In this case, you will have to independently allow outgoing connections to the server via TCP on ports 80 and 443 for http and https, respectively. (It is usually located at C:webserversUSRlocalapacheBINhttpd.exe).

By the way, these same ports can also be occupied by popular app Skype, so it is better to disable it while working with the local server.

Projects similar to Denwer

Although Denver is one of the most popular, flexible and simple tools for a web developer, sometimes it is useful to familiarize yourself with similar solutions that also provide the user with a full-fledged local server for website development.

For example, the denwer XAMPP analogue offers not only a set of tools for a local server, but also a full-fledged graphical shell, which, as previously noted, Denwer does not have. Therefore, many developers prefer XAMPP.

Denwer is a fairly popular tool among web developers, which allows you to deploy an environment on your computer for developing and debugging a website in the least amount of time. If you have used this tool, then you have probably already noticed that it includes traditional software for web servers, including Apache, MySQL, PHP. In the vast majority of cases, this is quite sufficient; in this article we will look at the possibility of using Denwer on a local network. Where might this be needed? Well, for example, you work in an office, you need to open access via the local network for some time to other computers, so that they, in turn, can open a website hosted on your computer.

Let's assume you have a directory that hosts your website. Now you need to configure the Apache web server so that it can handle requests from the outside. Open the configuration file:

C:/WebServers/usr/local/apache/conf/httpd.conf

We will take the default path, it is set when installing the Denwer package, if your server is located on a different path, change it for your case. Let's uncomment the line with the entry:

Listen 80

This instructs the server to listen to port 80 of the computer.
Next, you need to register virtual hosts for your site; to do this, open the file:

C:/WebServers/usr/local/apache/conf/vhosts.conf

We register our virtual host:

DocumentRoot Z:/home/localhost/www/host.example.com ServerName host.example.com

Where 192.168.0.132 is the IP address of your computer on the local network, DocumentRoot is the path to the directory of your site, ServerName is the domain that will be accessed from the local network. Don't forget to restart the web server after making changes to the configuration files.

Thus, in order to open the site from client machines, they need to write in the file:

C:\Windows\System32\drivers\etc\hosts

An entry like this:
192.168.0.132 host.example.com
Save the file, and then try to open the address host.example.com in the browser.
Now for those for whom something went wrong. It often happens that it is not possible to open a site from the outside; first of all, I recommend looking at the firewall and antivirus installed on the computer with Denwer, they can often block traffic from the local network. I also recommend checking the availability of server port 80 with client machine, you can use the telnet utility for these purposes. Opening command line in the system, enter the request:

Telnet ip-computer-with-site 80

If everything is in order, then you should connect to the server on port 80, otherwise you will receive an error message.