Tech Musings

Tuesday, December 13, 2005

Apache commands and configurations

It is helpful to know how to control the Apache Web Services via Terminal in OS X (or OS X Server). Use the graceful command if a configuration change was made and you only need to restart the httpd daemon. graceful will not disrupt current connections.

sudo apachectl start
sudo apachectl stop
sudo apachectl restart
sudo apachectl graceful

View running logs using the tail -f command:
tail -f /private/var/log/httpd/access_log (or error_log)

0 Comments:

Post a Comment

<< Home