Product SiteDocumentation Site

11.2. Running the httpd Service

This section describes how to start, stop, restart, and check the current status of the Apache HTTP Server. To be able to use the httpd service, make sure you have the httpd installed. You can do so by using the following command:
~]# yum install httpd
For more information on the concept of runlevels and how to manage system services in Fedora in general, refer to Chapter 7, Controlling Access to Services.

11.2.1. Starting the Service

To run the httpd service, type the following at a shell prompt:
~]# service httpd start
Starting httpd:                                            [  OK  ]
If you want the service to start automatically at the boot time, use the following command:
~]# chkconfig httpd on
This will enable the service for runlevel 2, 3, 4, and 5. Alternatively, you can use the Service Configuration utility as described in Section 7.2.1.1, “Enabling the Service”.

Note: Using the Secure Server

If running the Apache HTTP Server as a secure server, a password may be required after the machine boots if using an encrypted private SSL key.