Fall Semester 2007


Week One: Exercise One---Reinstalling Apache

John Meylor came to my office one day.

His server was up and running at the time he came.

We logged into his account, then this is what we did:

   69 clear

   70  ls -l

   71  ps -ef | grep meylo

   72  ~/apache/bin/apachectl stop

   73  ps -ef | grep meylo

   74  ls -l

   75  rm -r apache

   76  cd /nobackup/jmeylori/

   77  ls

   78  ls -l

   79  rm -r *

   80  pwd

   81  ls

   82  clear

   83  cd /nobackup/jmeylori/

   84  ls -l

   86  ls -ld /l/www/classes/a348/sum2006/software/httpd*

   87  ls -l /l/www/classes/a348/sum2006/software/*

   88  cp /l/www/classes/a348/sum2006/software/httpd* .

   89  ls -l

   90  gunzip *.gz

   91  ls -l *

   92  tar xvf *.tar

   93  cd httpd-2.2.2

   94  pwd

   95  pico try

   96  ls -l

   97  chmod 700 try

   98  ls -l

   99  cat try

  100  ls -ld /u/jmeylori/apache

  101  ls -ld /u/jmeylori/*

  102  ./try

  103  pwd

  104  cd ~/apache/

  105  pwd

  106  cd conf

  107  ls -ld httpd.conf

  108  ls -ld httpd*

  109  cp httpd.conf httpd.backup

  110  diff httpd.conf httpd.backup

  111  pico httpd.conf

  112  clear

  113  diff httpd.conf httpd.backup

  114  cd extra

  115  ls -ld *

  116  pico httpd-mpm.conf

  117  clear

  118  pwd

  119  ~/apache/bin/apachectl start

  120  pwd

  121  cd ~/apache/

  122  ls -l

  123  cd logs

  124  ls -l

  125  cat error_log

  126  date

  127  tail -f access_log

  128  nslookup 129.79.245.168

  129  pwd

  130  cd ~/apache/htdocs/

  131  ls -l

  132  pico one.html

  133  rm index.html

  134  clear

  135  history

Can you explain, line by line, what exactly we did and how?


Last updated: Jun 17, 2008