Starting and Stopping of Apache
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
|
|
|
|
[Home] [FBSD Articles] [Scripts Corner] [Contribute] [Search] [FBSD Links] [Files]
About Us
FreeBSD Articles
*Hardware
*Networking
*Security
*Software
*X Windows
Forums
Defcon1 Forum
Files / Scripts
Newbies Corner
Tech. Talk
Tips and Tricks
FreeBSD Links
Articles in other
Languages :
*French Articles
*Spanish Articles
Want to Help ?
Click Here
Email Users

This site cannot be duplicated without permission
© 1998 - 2008 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.