Apache
Control Server
Start and stop Apache server
sudo apachectl start
sudo apachectl stopRestart Apache server and apply new configuration
sudo apachectl restartCheck apache server process is running
ps -aef | grep httpdCheck Configuration
Run syntax check for config files
apachectl -t
apachectl configtestShow Configuration
Show Apache version and compile settings module details
apachectl -v
apachectl -VList available configuration directives
apachectl -LList compiled (-l) and loaded modules (-M same as -t -D DUMP_MODULES)
apachectl -l
apachectl -MShow parsed vhosts config and run settings (same as -t -D DUMP_VHOSTS -D DUMP_RUN_CFG)
apachectl -SOutput summary debug information for Apache (modules, vhosts, config)
apachectl -t -D DUMP_MODULES
apachectl -t -D DUMP_VHOSTS
apachectl -t -D DUMP_RUN_CFGLast updated