The Apache HTTP Server is called Apache, Apache is a Web server application which is suitable for All LINUX and UNIX distribution and also support for windows. Apache support IP based virtual hosting & Name based virtual hosting. Its serving .html, .php, .pl, .cgi, etc ,..Apache is developed and maintained by open community of developers under Apache Software Foundation. Here i added mostly using apache2 commands for instant purpose.
Cheat-sheet for Apache:
+----------------------------------------+----------------------------------------+
| Apache2 Service Commands | Apache2 Important Files |
+----------------------------------------+----------------------------------------+
| Starting Apache2 | Apach2 Syntax check |
| $ sudo /etc/init.d/apache2 start | $ apachectl configtest |
| $ sudo service apache2 start | $ apachectl -t |
| $ sudo apachectl -k start | |
+----------------------------------------+----------------------------------------+
| Restarting Apache2 | Apache2 Web root |
| $ sudo /etc/init.d/apache2 restart | $ /var/www/html - default |
| $ sudo service apache2 restart | $ /var/www/ - New domain location |
| $ sudo apachectl -k restart | |
+----------------------------------------+----------------------------------------+
| Stopping Apache2 | Enable / Disable Virtual Hosts |
| $ sudo /etc/init.d/apache2 stop | $ sudo a2ensite xxxx.conf |
| $ sudo service apache2 stop | $ sudo a2dissite xxxx.conf |
| $ sudo apachectl -k stop | |
+----------------------------------------+----------------------------------------+
| Status Apache2 | Loaded apache2 Modules |
| $ sudo /etc/init.d/apache2 status | $ apachectl -M |
| $ sudo service apache2 status | $ apache2ctl -M |
+----------------------------------------+----------------------------------------+
| Reload Apache | Apache2 Config file's |
| $ sudo /etc/init.d/apache2 reload | $ /etc/apache2/apache2.conf |
| $ sudo service apache2 reload | $ /etc/apache2/ports.conf |
| $ sudo apachectl -k reload | $ /etc/apache2/sites-available/xxx.conf|
+----------------------------------------+----------------------------------------+
| Apache2 Graceful | Available apache2 Modules |
| $ sudo apachectl -k graceful | $ /usr/lib/apache2/modules/ |
| $ sudo apachectl -k graceful-stop | |
| +----------------------------------------+
| | Apache2 log file's |
| | $ /var/log/apache2/error.log |
| | $ /var/log/apache2/access.log |
+----------------------------------------+----------------------------------------+