community man page

apachectl

GNU

Control an Apache HTTP server.

8 examples·source: tldr · CC-BY·status: verified
Reading is open to everyone. Suggesting a flag, fixing an example or adding a recipe is opening to verified-email accounts soon — every change is moderated before it goes live.
curl https://curlhub.sh/man/apachectl
same page, in your terminal

Examples

Start the server GNU

sudo apachectl start

Restart the server GNU

sudo apachectl restart

Stop the server GNU

sudo apachectl stop

Test configuration file validity GNU

apachectl configtest

Check server status (requires the lynx browser) GNU

apachectl status

Reload configuration without dropping connections GNU

sudo apachectl graceful

Print full Apache configuration (not always supported) GNU

apachectl -S

Display help GNU

apachectl -h