-------------- Lab 05 answers -------------- -Ian! D. Allen - idallen@idallen.ca - www.idallen.com 1. man -k apache 2. apache2 3. System administration commands 4. whereis apache2 5. /etc/apache2 6. apache2 -v 7. apache2 -l 8. apache2 -L 9. http://httpd.apache.org/docs/2.2/ 10. mod_userdir 11. grep -r "public_html" /etc/apache2 12a. Compiled in modules: core.c mod_log_config.c mod_logio.c worker.c http_core.c mod_so.c 12c. grep -n Include /etc/apache2/apache2.conf 182:# Include module configuration: 183:Include /etc/apache2/mods-enabled/*.load 184:Include /etc/apache2/mods-enabled/*.conf 186:# Include all the user configurations: 187:Include /etc/apache2/httpd.conf 189:# Include ports listing 190:Include /etc/apache2/ports.conf 259:# Options IncludesNoExec 260:# AddOutputFilter Includes html 288:# Include of directories ignores editors' and dpkg's backup files, 291:# Include generic snippets of statements 292:Include /etc/apache2/conf.d/ 294:# Include the virtual host configurations: 295:Include /etc/apache2/sites-enabled/ 12d. 183 184 12e. ls /etc/apache2/mods-enabled/*load | wc -l 12f. ls /etc/apache2/mods-available/*load | wc -l # optional: 12g. a2enmod userdir ; /etc/init.d/apache2 reload # optional: 13. mkdir ~abcd0001/public_html Script: new dir for the PATH line: PATH=/usr/sbin:/sbin:/bin:/usr/bin