<-
Apache > HTTP Server > Documentation > Version 2.4

Starting Apache 703s4d

Available Languages:  tr 

On Windows, Apache is normally run as a service. For details, see Running Apache as a Service.

On Unix, the httpd.

 Apache!

See also 27136x

top

How Apache Starts 1c705l

If the Multi-Processing Module.

The recommended method of invoking the httpd binary and any command-line arguments that you wish to be always present.

The first thing that configuration file apache2.conf. The location of this file is set at compile-time, but it is possible to specify its location at run time using the -f command-line option as in

/usr/local/apache2/bin/apache2ctl -f /etc/apache2/apache2.conf

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.

top

Errors During Start-up k2f5c

If 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 "Unable to bind to Port ...". This message is usually caused by either:

For further trouble-shooting instructions, consult the Apache FAQ.

top

Starting at Boot-Time 2i2lt

If you want your server to continue running after a system reboot, you should add a call to apache2ctl to your system startup files (typically rc.local or a file in an rc.N directory). This will start Apache as root. Before doing this ensure that your server is properly configured for security and access restrictions.

The apache2ctl into the appropriate init directory. But be sure to check the exact requirements of your system.

top

Additional Information 2u31p

Additional information about the command-line options of directives that they provide.

Available Languages:  tr 

top

Comments 2p1l6j

Notice:
This is not a Q&A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed by our s if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Libera.chat, or sent to our mailing lists.