10.4. Starting and Stopping httpd
The httpd RPM installs the
/etc/rc.d/init.d/httpd script, which can be
accessed using the /sbin/service command.
To start the server, as root type:
/sbin/service httpd start |
To stop the server, as root type:
The restart option is a shorthand way of stopping and then
starting the Apache HTTP Server.
To restart the server, as root type:
/sbin/service httpd restart |
| Note |
---|
| If running the Apache HTTP Server as a secure server, it is necessary to type
the server password whenever using the start or
restart options.
|
After editing the httpd.conf file, however, it is
not necessary to explicitly stop and start the server.
Instead, use the reload option.
To reload the server configuration file, as root type:
/sbin/service httpd reload |
| Note |
---|
| If running the Apache HTTP Server as a secure server, the server password is
not required when using the
reload option.
|
By default, the httpd service will
not start automatically at boot time. To configure
the httpd service to start up at boot time using an
initscript utility, such as /sbin/chkconfig,
/sbin/ntsysv, or the
Services Configuration Tool program. Refer to the
chapter titled Controlling Access to Services in
Red Hat Linux Customization Guide for more information regarding these
tools.
| Note |
---|
| If running the Apache HTTP Server as a secure server, the secure server's
password is required after the machine boots, unless a specific type
of server key file is present.
For information about setting up an Apache HTTP Secure Server see the
chapter titled Apache HTTP Secure Server
Configuration in the Red Hat Linux Customization Guide.
|