Apache
Start and stop Apache server
sudo apachectl start
sudo apachectl stop
Restart Apache server and apply new configuration
sudo apachectl restart
Check apache server process is running
Check Configuration
Run syntax check for config files
apachectl -t
apachectl configtest
Show Configuration
Show Apache version and compile settings module details
apachectl -v
apachectl -V
List available configuration directives
List compiled (-l) and loaded modules (-M same as -t -D DUMP_MODULES)
Show parsed vhosts config and run settings (same as -t -D DUMP_VHOSTS -D DUMP_RUN_CFG)
Output summary debug information for Apache (modules, vhosts, config)