apachectl
Control an Apache HTTP server. tldr-pages
On Linux, macOS
Linux
Start the server
sudo apachectl startIdentifyRestart the server
sudo apachectl restartIdentifyStop the server
sudo apachectl stopIdentifyTest configuration file validity
apachectl configtestIdentifyCheck server status (requires the lynx browser)
apachectl statusIdentifyReload configuration without dropping connections
sudo apachectl gracefulIdentifyPrint full Apache configuration (not always supported)
apachectl -SIdentifyDisplay help
apachectl -hIdentify