snippetbashTip
apachectl — Control an Apache HTTP server. More information: <https://manned.org/apachectl>.
Viewed 0 times
serverhttpcommandcliapachecontrolapachectlmore
linux
Problem
How to use the
apachectl command: Control an Apache HTTP server. More information: <https://manned.org/apachectl>.Solution
apachectl — Control an Apache HTTP server. More information: <https://manned.org/apachectl>.Start the server:
sudo apachectl startRestart the server:
sudo apachectl restartStop the server:
sudo apachectl stopTest configuration file validity:
apachectl configtestCheck server status (requires the lynx browser):
apachectl statusReload configuration without dropping connections:
sudo apachectl gracefulPrint full Apache configuration (not always supported):
apachectl -SDisplay help:
apachectl -hCode Snippets
Start the server
sudo apachectl startRestart the server
sudo apachectl restartStop the server
sudo apachectl stopTest configuration file validity
apachectl configtestCheck server status (requires the lynx browser)
apachectl statusContext
tldr-pages: linux/apachectl
Revisions (0)
No revisions yet.