Language and Page Formatting Options
10.4. Starting and Stopping httpd
httpdRPM installs the
/etc/init.d/httpdscript, which can be accessed using the
To start the server, as root type:
service httpd start
To stop the server, as root type:
service httpd stop
restartoption is a shorthand way of stopping and then starting the Apache HTTP Server.
To restart the server, as root type:
service httpd restart
If running the Apache HTTP Server as a secure server, it may be necessary to type the server password whenever using the
After editing the
httpd.conffile, however, it is not necessary to explicitly stop and start the server. Instead, use the
To reload the server configuration file, as root type:
service httpd reload
If running the Apache HTTP Server as a secure server, the server password is not required when using the
By default, the
httpdservice does not start automatically at boot time. To configure the
httpdservice to start up at boot time, use an initscript utility, such as
/sbin/chkconfig, /usr/sbin/ntsysv, or the Services Configuration Tool program. Refer to the chapter titled Controlling Access to Services in System Administrators Guide for more information regarding these tools.
If running the Apache HTTP Server as a secure server, the secure server's password is required after the machine boots when using an encrypted private SSL key.
For information about setting up an Apache HTTP Secure Server, refer to the chapter titled Apache HTTP Secure Server Configuration in the System Administrators Guide.