Download   Online Shop   Red Hat Network
Home  |  Products & Services  |  Support  |  Training  |  Partners  |  Documentation   
Red Hat Documentation

Starting and Stopping Your Server

Starting and Stopping Your Server

Please Note: Before you can start your Red Hat Apache/SSL Server, you must have either a test certificate or a "real" certificate (provided by a Certificate Authority like VeriSign or Thawte) installed. If you attempt to start the httpsd process without having a certificate installed, the Web server will start, but it will only run in non-secure mode, just as if you were simply running Apache.

During the installation process, a server startup file named httpsd was installed into /etc/rc.d/init.d. To manually stop and start the server, run this httpsd command with either stop or start as an argument.

To start your server, type the command:

/etc/rc.d/init.d/httpsd start
      

You will be prompted to fill in your password. After you type it in, your server will start.

To stop your server, type the command:

/etc/rc.d/init.d/httpsd stop
      

The command restart is a shorthand way of stopping and then starting your server. restart does explicitly stop and then start your server, so you will be prompted for your password. restart looks like the following:

/etc/rc.d/init.d/httpsd restart
      

If you just finished editing something in your httpd.conf file, you don't need to explicitly stop and start your server. Instead you may use the reload command. The benefit of using reload is that you will not need to type in your password. Your password will remain cached across reloads, but it will not be cached betweens stops and starts. reload looks like the following:

/etc/rc.d/init.d/httpsd reload
      

After a reload, your server will start without prompting you for your password.

If you want your server to start automatically when your machine boots, you need to create symlinks from the rc3.d and rc0.d directories to the httpsd command. The following commands create the symlinks to start the httpsd process at boot time:

cd /etc/rc.d/rc3.d
ln -s ../init.d/httpsd S99httpsd
      

The following commands create symlinks which tell your system to stop the httpsd process when the system shuts down.

cd /etc/rc.d/rc0.d
ln -s ../init.d/httpsd K99httpsd
      

If you are running the X Window System, you can use tksysv to create these symlinks.

 

 
 
Search for:  on    Powered by Google
Products & Services   :   Download   :   Support   :   Training   :   Partners & Programs
© 2000 Red Hat, Inc. All right reserved.       About Red Hat   :   Legal statement   :   Privacy statement   :   Y2K statement   :   Contact Red Hat