The Apache Webserver
cwiki.apache.org
ServerRoot /etc/apache2
DocumentRoot /var/www
Primary Config File /etc/apache2/apache2.conf
Apache Config Files /etc/apache2/ports.conf
Default VHost Config /etc/apache2/sites-available/default
Default VHost Config /etc/apache2/sites-enabled/000-default
Module Locations /etc/apache2/mods-available
Module Locations /etc/apache2/mods-enabled
specifies user/group for Apache2 /etc/apache2/envvars
ErrorLog /var/log/apache2/error.log
AccessLog /var/log/apache2/access.log
cgi-bin /usr/lib/cgi-bin
binaries (apachectl) /usr/sbin
apache2ctl -V |grep MPM view MPM at CLI
start/stop /etc/init.d/apache2
start
stop
restart
reload
force-reload
start-htcacheclean
stop-htcacheclean
listen
display version of apache2apache2 -v
check apache2 config files for errorsapache2 -t
command that displays if the daemon is running/etc/init.d/apache2 status
Set absolute path to your server directoryServerRoot
which of the following apache2 direcrives uses the ports.conf file and specifies the port on which you want your server to run.Listen
which of the following apache2 directives sets the absolute path of your document tree that is the top directory from which apache serves filesDocumentRoot
which of the following apache2 directives sets the uid and guid for the server to process requestsgroup user
Back to index