This command will safely stop apache server processes.
To stop Apache :
apachectl stop
If apachectl is not in your PATH and you don’t know where it is, refer to the recipe Find a file by name to find the location of apachectl, then run it with the fully qualified path, for example:
/usr/local/apache/bin/apachectl stop