Domain hosting, buy domain names & web page promotion services
  

 Home

Red Hat Linux 8.0: The Official Red Hat Linux Reference Guide
PrevChapter 14. Apache HTTP ServerNext

Starting and Stopping httpd

The the httpd RPM installs the /etc/rc.d/init.d/httpd Bourne script, which is accessed using the /sbin/service command.

To start your server, as root type:

/sbin/service httpd start

NoteNote
 

If you are running the Apache HTTP Server as a secure server, you will be prompted to type your password.

To stop your server, type the command:

/sbin/service httpd stop

The command restart is a shorthand way of stopping and then starting your server. The restart command explicitly stops and then starts your server. You will be prompted for your password if you are running the Apache HTTP Server as a secure server. The restart command looks like the following:

/sbin/service httpd restart

If you just finished editing something in your httpd.conf file, you do not need to explicitly stop and start your server. Instead, you can use the reload command.

NoteNote
 

If you are running the Apache HTTP Server as a secure server, you will not need to type your password when using the reload option as the password will remain cached across reloads.

The reload command looks like the following example:

/sbin/service httpd reload

By default, the httpd process will not start automatically when your machine boots. You will need 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.

Please refer to the chapter titled Controlling Access to Services in Official Red Hat Linux Customization Guide for more information regarding these tools.

NoteNote
 

If you are running the Apache HTTP Server as a secure server, you will be prompted for the secure server's password after the machine boots, unless you generated a specific type of server key file.

For information about setting up an Apache HTTP Secure Server see the chapter titled Apache HTTP Secure Server Configuration in the Official Red Hat Linux Customization Guide.


PrevHomeNext
After InstallationUpConfiguration Directives in httpd.conf
 

 

 

 

Buy domain name by 895cheap-domain.com |  Web site ranking and promotion 

Disclaimer: For authoritative source or latest update to this documentation, please refer to http://www.redhat.com/docs/manuals/linux/

 
Quotes: Be not afraid of life. Believe that life is worth living, and your belief will help create the fact.