Web Hosting Reviews
Server Applications :: Apache. The beginning of work.

Other Articles:
 Virtual hosting or the virtual personal-dedicated server?

24/7 Solutions - Apache. The beginning of work.


Homepage of server Apache - here. It site works Under Apache too that is Apache - the high-grade web-north. On page the history is told Creations, the documentation, and itself, actually, a server for all platforms is laid out. Here it is far The incomplete list of functions, it carried out:

  • high-grade web server;
  • proxy a server;
  • support CGI;
  • support SSI;
  • supports virtual servers.

How many there is such pleasure? And at all. The matter is that Apache - a server, created efforts of weight of programmers worldwide. Apache - the child the Internet, and hence - extends free of charge.

So, what it is necessary to make, that Apache has earned on your computer? And the following is necessary. On site Apache it is necessary to find and load Apache for Win32 (that is Win 95/98/NT). By the moment writing on a site version 1.3.6 while for two weeks before was is laid out Version 1.3.4 but to load each time the new version it is not meaningful, if is not present concrete problems - the server is very reliable and almost perfect.

Having loaded the distribution kit of a server, start an executed file. During installation follows to specify a directory c:usrlocalapache for installation instead of that, that costs there by default. The matter is that such arrangement of a server corresponds to its arrangement or similar on a real server web, and the nearest by way of a configuration you shall be to a server, the better and more effectively you can work. Our configuration for example, a configuration such, that for loading file and it there successful work it is not necessary anything - all in accuracy as THERE, that is on server at the provider.

So, after installation completed, it is necessary to make a configuration of a server. Configuration Apache is made by means of change such *.ini files, they have Expansion *.conf.

The basic configuration file refers to httpd.conf and is responsible for the basic startup configuration of a server. Files of a configuration lay in/usr/local/apache/conf/, but after you them there will not find installation. However they were not gone anywhere - all of them lay in a folder /usr/local/apache/.tmp/. Following files are required to be copied in a directory /usr/local/apache/conf/:

  • httpd.conf - the basic configuration of a server;
  • access.conf - a configuration of access to a server;
  • mime.types - types of expansions MIME;
  • srm.conf - a makeweight to a configuration.

So, the first (and the only thing) a file which will be necessary for changing httpd.conf. open it in NotePad. Each section and parameter here it is very clever комментирован, but not knowing precisely, that it means, to understand difficultly.

Configuring a server, we shall establish weak enough security - we its houses shall be to use. "Weak" meaning that, for example, CGI at us will be resolved to execution everywhere.

Further instructions are described, that they mean also to that should be equal.

Server root - "root" of a server. It should be equal ' c:/urs/local/apache ', since there we have established a server; Server admin - e-mail address of the manager of a server; Document root - a way to files http - to documents. At me costs "c:/home"; After a phrase # This should be changed to whatever you set DocumentRoot to... Should be It is written directory "way_to_http_file">

The following parameter (options) should contain words indexes, Includes and ExecCGI, that will give opportunity to a server:

  • To execute CGI scripts
  • To show the maintenance of directories;
  • To carry out instructions SSI;

Before the instruction - insert two lines:

  • AddHandler Server-Parsed .htm .html .shtml
  • AddHandler Cgi-Script .cgi

These instructions define so-called handles - instructions to a server " to process files *.xxx As... "

Parameter UserDir should be established equal document root. It is responsible for accommodation directories of users in which searches at inquiry www.address.com/~username will go server. That is it will search in userdir/username.

In DirectoryIndex it is possible to add index.htm (many do not .html and .htm).

In ServerName ANY name of a server - at me Firestarter is written, on work it is real not it is reflected.

Now it is possible to start a server. Still we shall advise to make that:

Create labels (for example, on a desktop) on ' c:\usrlocalapacheapache.exe ' and the second on ' c:\usrlocalapacheapache.exe -k -shutdown ', also call them "Apache" and "Shut Apache Down ". Thus these labels will start a server and to switch off it. Also it is possible to make label ' c:usrlocalapacheapache.exe-k restart ' for reload a server after change files of a configuration.

Here actually and everything, that is necessary for you for the beginning works with Apache.