commands.sh

apachectl

linuxmacos

Control an Apache HTTP server.

More info →

Examples (8)

Start the server

Restart the server

sudo apachectl restart

Stop the server

Test configuration file validity

apachectl configtest

Check server status (requires the lynx browser)

apachectl status

Reload configuration without dropping connections

sudo apachectl graceful

Print full Apache configuration (not always supported)

Display help

made by @shridhargupta | data from tldr-pages