|
|||
| Admin guide | Apache guide | FAQ | |||
Starting ApacheStarting Apache On WindowsOn Windows, Apache is normally run as a service on Windows NT, or as a console application on Windows 95. For details, see running Apache for Windows. Starting Apache on UnixOn Unix, the httpd program is run
as a daemon which executes continuously in the background to handle
requests. It is possible to have Apache invoked by the Internet daemon
If the Port specified in the
configuration file is the default of 80 (or any other port below
1024), then it is necessary to have root privileges in order to start
Apache, so that it can bind to this privileged port. Once the server
has started and completed a few preliminary activities such as opening
its log files, it will launch several child processes which
do the work of listening for and answering requests from clients. The
main The first thing that
As an alternative to invoking the If all goes well during startup, the server will detach from the terminal and the command prompt will return almost immediately. This indicates that the server is up and running. You can then use your browser to connect to the server and view the test page in the DocumentRoot directory and the local copy of the documentation linked from that page. Errors During Start-upIf Apache suffers a fatal problem during startup, it will write a
message describing the problem either to the console or to the ErrorLog before exiting. One of the
most common error messages is "
For further trouble-shooting instructions, consult the Apache FAQ. Starting at Boot-TimeIf you want your server to continue running after a system reboot,
you should add a call to Additional InformationAdditional information about the command-line options of httpd and apachectl as well as other support programs included with the server is available on the Server and Supporting Programs page. There is also documentation on all the modules included with the Apache distribution and the directives that they provide. |
|
|