Defcon1-Header
Tool-BarfreeBSD ArticlesSearch Our SiteHOMEfreeBSD LinksContribute to FreeBSD HelpFreeBSD FilesFreeBSD Script Corner

Starting and Stopping Apache Web Server:

 Whenerver you make changes to your apache, such as the httpd.conf, or the apache.conf, you then need to restart apache so that it may load the newest changes that you've made. Or if this isnt the case, and you have just had a problem with the apache stopping on it own, or whatever the case might be that you need to start and then restart the apache, this article will explain to you how to do this proceedure. You can do this without rebooting your computer.

The proper way to STOP your httpd is by giving it the following command as root :

       ./usr/local/sbin/apachectl stop

To get further information on the apachectl commands, you can do the following command at a prompt "apachectl" and it will give you the help screen that looks like this :

start    - start httpd
startssl  - start httpd with SSL enabled
stop    - stop httpd
restart   - restart httpd if running by sending a SIGHUP or start if not running
fullstatus - dump a full status screen; requires lynx and mod_status enabled
status   - dump a short status screen; requires lynx and mod_status enabled
graceful  - do a graceful restart by sending a SIGUSR1 or start if not running
configtest - do a configuration syntax test
help     - this screen

When you are ready to re-fire the apache normally, do the following command :

    /usr/local/sbin/apachectl start

Note: If you are using SSL with apache, then start the apachectl this way:

   /usr/local/sbin/apachectl startssl

Restarting Your Apache
 I would recommend stopping apache and then starting it. Otherwise you are taking a chance of
messing up the apache process. 

 
GhostRdr

© 1997 - 20013 Defcon1, www.defcon1.org , Copyrights for all materials on this web site are held by the individual authors, artists, photographers or creators. Materials may not be reproduced or otherwise distributed without permission of www.defcon1.org and the content's original author.

Defcon1-Header2
Tool-Bar-2Defcon1  Webmail