Entering the following as root of sudo will restart Apache gracefully and wait for all current requests to finish before they are removed. The advantage of this is that anybody browsing your server at the time won't get a "page not found" error
sudo apachectl -k graceful