http://httpd.apache.org/docs/2.1/stopping.html
kill -TERM `cat /usr/local/apache2/logs/httpd.pid`
tail -f /usr/local/apache2/logs/error_log
apachectl -k restartapachectl -k start/stopapachectl -k gracefulapachectl -k graceful-stop
There are a few ways to start the server from the command line:
- Using “startServer” (recommended)
- Using “startServer -script” to generate a startup script, then running the script
- Using “startServerBasic,” the basic startup script
… and a couple of ways to stop the server from the command line:
- Using “stopServer” (recommended)
- Using “DrAdmin”