TASK: Add Web Server


Operator procedure:

  1. Copy Apache from one of the nodes running Apache from /scratch/httpd on a machine currently running apache (machine00s) to /scratch on the target machine (machine01s).
  2. Change /scratch/httpd/conf/httpd.conf on the target machine (machine01s) to reflect the target machine name.
  3. Change /scratch/httpd/conf/httpd.conf.rubis and /scratch/httpd/conf/httpd.conf.tpcw also to reflect target machine name.
  4. Change /scratch/httpd/conf/mcast_heartbeat_db.conf to reflect the virtual mendosus interface. (Mendosus is just an interface name.) Just change the 'interface' setting and nothing else. /sbin/ifconfig will tell you the host IP address with the virtual interface. The virtual interface has a ":" in the interface name, e.g. "eth1:0". The IP address and corresponding mendosus interface name will be in /etc/hosts.
  5. Remove error_log, modjk_log, access_log files from /scratch/httpd/logs directory.
  6. Check to see if any apache "httpd" tasks are running. If so, kill them with the command "slide /scratch/httpd/bin/apachectl stop" before doing the next step.
  7. Start apache on the target machine with the command "slide /scratch/httpd/bin/apachectl start". Be careful to make the operand "start" and not "restart".
  8. Check to make sure apache "httpd" tasks and the "mcast_heartbeat_db" task are running.
  9. Look at the end of the /scratch/httpd/logs/access_log to make sure the client requests are reaching the webserver. Client requests are reaching the webserver if the file grows. Either do "tail -f" and look at the file directly or use "ls" to see if the size of the file is changing.
End of operator procedure.